From: mortenp Date: Fri, 31 Oct 2008 14:45:49 +0000 (+1100) Subject: Added a sanity check in mlmmj-receive-strip (Chris Webb) X-Git-Tag: RELEASE_1_2_16~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f04c052beaf1e19aa3ba7a994b9acc02eafcd5fe;p=thirdparty%2Fmlmmj.git Added a sanity check in mlmmj-receive-strip (Chris Webb) --- diff --git a/ChangeLog b/ChangeLog index 430f468c..0edc6016 100644 --- 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) diff --git a/contrib/recievestrip/mlmmj-recieve-strip.c b/contrib/recievestrip/mlmmj-recieve-strip.c index d44ff0ae..57580a1c 100644 --- a/contrib/recievestrip/mlmmj-recieve-strip.c +++ b/contrib/recievestrip/mlmmj-recieve-strip.c @@ -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)