]> git.ipfire.org Git - thirdparty/mlmmj.git/commitdiff
Added a sanity check in mlmmj-receive-strip (Chris Webb)
authormortenp <none@none>
Fri, 31 Oct 2008 14:45:49 +0000 (01:45 +1100)
committermortenp <none@none>
Fri, 31 Oct 2008 14:45:49 +0000 (01:45 +1100)
ChangeLog
contrib/recievestrip/mlmmj-recieve-strip.c

index 430f468c736186eba58e99cc2bd72b386dfb555b..0edc6016f6a0c22544f03f206fae7c1fc3dbaf56 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,4 @@
+ o Added a sanity check in mlmmj-receive-strip (Chris Webb)
  o Added more sanity checks (Thomas Jarosch)
  o Disabled digest mails when 'noarchive' is set (Thomas Jarosch)
  o Added Russian listtexts (Nikolay Derkach)
index d44ff0ae24ad8a92cd347cc185124e2abec693dc..57580a1c15b8c2764221f1c6545f8ce0877588f8 100644 (file)
@@ -81,6 +81,9 @@ static int findit(char *line, char **headers)
         int i = 0;
         size_t len;
 
+       if (!headers)
+               return 0;
+
         while(headers[i]) {
                 len = strlen(headers[i]);
                 if(strncasecmp(line, headers[i], len) == 0)