diff options
author | Richard A Nelson (Rick) <cowboy@debian.org> | 2006-09-15 00:00:25 +0000 |
---|---|---|
committer | Andreas Beckmann <debian@abeckmann.de> | 2012-10-01 19:59:01 +0200 |
commit | f0f36485dea156186c1c26f1d281e3f508da0c7a (patch) | |
tree | 2d3f3aa9ce7fbf15d0510c6120b605f849817afe /debian/patches/8.13/8.13.8/sasl.patch | |
parent | 896b3e655fe945bda9e3f0d53d38352163da5081 (diff) | |
download | sendmail-debian/8.13.8-3.tar.gz |
Imported Debian patch 8.13.8-3debian/8.13.8-3
Diffstat (limited to 'debian/patches/8.13/8.13.8/sasl.patch')
-rw-r--r-- | debian/patches/8.13/8.13.8/sasl.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/debian/patches/8.13/8.13.8/sasl.patch b/debian/patches/8.13/8.13.8/sasl.patch new file mode 100644 index 0000000..468cb74 --- /dev/null +++ b/debian/patches/8.13/8.13.8/sasl.patch @@ -0,0 +1,29 @@ +diff -u -r -N sendmail-8.13.8.orig/sendmail/usersmtp.c sendmail-8.13.8/sendmail/usersmtp.c +--- sendmail-8.13.8.orig/sendmail/usersmtp.c 2006-11-16 10:26:06.003494000 +0100 ++++ sendmail-8.13.8/sendmail/usersmtp.c 2006-11-16 10:34:24.744797703 +0100 +@@ -553,6 +553,9 @@ + + if (sasl_clt_init) + return SASL_OK; ++ /* Beware, callbacks are ignored if sasl_client_init() has ++ * been called before (by a library such as libnss_ldap) ++ */ + result = sasl_client_init(callbacks); + + /* should we retry later again or just remember that it failed? */ +@@ -1579,9 +1582,13 @@ + + /* make a new client sasl connection */ + # if SASL >= 20000 ++ /* We provide the callbacks again because global callbacks in ++ * sasl_client_init() are ignored if sasl has been initialized ++ * before, for example, by a library such as libnss-ldap. ++ */ + saslresult = sasl_client_new(bitnset(M_LMTP, m->m_flags) ? "lmtp" + : "smtp", +- CurHostName, NULL, NULL, NULL, 0, ++ CurHostName, NULL, NULL, callbacks, 0, + &mci->mci_conn); + # else /* SASL >= 20000 */ + saslresult = sasl_client_new(bitnset(M_LMTP, m->m_flags) ? "lmtp" + |