There is a deadlock situation when ud-mailgate gets a mail claiming to be from userdir-ldap-0.3.56
authorPeter Palfrader <peter@palfrader.org>
Wed, 17 Dec 2008 11:58:32 +0000 (12:58 +0100)
committerPeter Palfrader <peter@palfrader.org>
Wed, 17 Dec 2008 11:58:32 +0000 (12:58 +0100)
commit00994f78b1ff7fcd9481a3fd1559f1a77157adbb
treeab12403dcfdea96eec80323536a19328bce09251
parentb7bd5e0fd1dd4eb6a8f6f8b79f53dae09720f109
There is a deadlock situation when ud-mailgate gets a mail claiming to be from
itself:
 - ud-mailgate opens and locks the replay cache
 - verification of the mail fails for whatever reason
 - a reply is sent (to itself)
 - exim tries to deliver the mail by directly calling ud-mailgate
 - ud-mailgate tries to acquire the lock -> deadlock
Fix this by changing when we open the replay cache, and unlock it as soon as we
are done.
debian/changelog
ud-mailgate