[Dovecot] mech-plain patch

Andrew Hutchings mail at a-wing.co.uk
Fri Dec 10 04:03:05 EET 2004


Hi Guys,

Unoffical patch for mech-plain so the AUTH PLAIN command works with SQL 
(and possibly other DBs).  Thunderbird should work again after this.



--- mech-plain.c        2004-12-10 01:56:51.065987304 +0000
+++ mech-plain.c        2004-12-10 01:53:16.974534152 +0000
@@ -27,7 +27,10 @@
        authid = (const char *) data;
        authenid = NULL; pass = "";

-       count = 0;
+       if (data_size == 0)
+               return;
+
+       count = 0;
        for (i = 0; i < data_size; i++) {
                if (data[i] == '\0') {
                        if (++count == 1)


Regards
Andrew

-- 
Andrew Hutchings
Systems Operator / Developer / Linux Guru
Netserve Consultants Ltd.
http://www.domaincity.co.uk/




More information about the dovecot mailing list