[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

mimeheaders segfault



RCS file: /cvsroot/zmailer/transports/libta/mimeheaders.c,v
retrieving revision 1.39
diff -u -r1.39 mimeheaders.c
--- transports/libta/mimeheaders.c      2000/12/30 12:34:44     1.39
+++ transports/libta/mimeheaders.c      2001/01/22 15:38:24
@@ -722,7 +722,7 @@
        b = malloc(space);
        if (!b) return NULL; /* UARGH! */
 
-       if (*start == '"') {
+       if (*start == '"' && len > 2) {
          /* QUOTED-STRING, which we UNQUOTE here */
          /* Our caller allows only quoted-strings, not
             quoted-localparts! */