From f0f36485dea156186c1c26f1d281e3f508da0c7a Mon Sep 17 00:00:00 2001 From: "Richard A Nelson (Rick)" Date: Fri, 15 Sep 2006 00:00:25 +0000 Subject: Imported Debian patch 8.13.8-3 --- debian/patches/8.13/8.13.8/sasl.patch | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 debian/patches/8.13/8.13.8/sasl.patch (limited to 'debian/patches') 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" + -- cgit v1.2.3