]> granicus.if.org Git - neomutt/commitdiff
Another possible memory leak in rfc822_parse_adrlist. The
authorThomas Roessler <roessler@does-not-exist.org>
Wed, 26 Aug 1998 21:12:23 +0000 (21:12 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Wed, 26 Aug 1998 21:12:23 +0000 (21:12 +0000)
problem and the patch are pretty much the same as with the
last fix applied to this file - it's just ',' instaed of
';' this time.

rfc822.c

index ce3c126fa1134bcf03fba2d0e136330e44849e52..70f3a8e539e0c44123891b307620baf9f4554692 100644 (file)
--- a/rfc822.c
+++ b/rfc822.c
@@ -340,7 +340,7 @@ ADDRESS *rfc822_parse_adrlist (ADDRESS *top, const char *s)
       }
 
 #ifdef EXACT_ADDRESS
-      if (last)
+      if (last && !last->val)
        last->val = mutt_substrdup (begin, s);
 #endif
       commentlen = 0;