[PATCH] segfault in pop3proxyd

Etienne Goyer etienne.goyer at linuxquebec.com
Mon Jun 16 15:50:35 EDT 2003


Hi,

Here is a fix for a segfault in pop3proxyd.c proxy_authenticate().  It
happen when connecting to a backend whose hostname does not have a
domain part.  In theory, it should never happen but in some fringe
condition (like mine) it could.


-- 
Etienne Goyer                    Linux Québec Technologies Inc.
http://www.LinuxQuebec.com       etienne.goyer at linuxquebec.com
-------------- next part --------------
--- pop3proxyd.c.orig   Mon Jun 16 14:59:18 2003
+++ pop3proxyd.c        Mon Jun 16 15:25:34 2003
@@ -1160,7 +1160,7 @@

     strcpy(buf, hostname);
     p = strchr(buf, '.');
-    *p = '\0';
+    p ? *p = '\0' : "";
     strcat(buf, "_mechs");

     /* we now do the actual SASL exchange */


More information about the Info-cyrus mailing list