changeset 676:c334ffdf8807

Added a sanity check in mlmmj-receive-strip (Chris Webb)
author mortenp
date Sat, 01 Nov 2008 01:45:49 +1100
parents 2f98510cc11a
children c8e85bb330ed
files ChangeLog contrib/recievestrip/mlmmj-recieve-strip.c
diffstat 2 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Sat Nov 01 01:42:14 2008 +1100
+++ b/ChangeLog	Sat Nov 01 01:45:49 2008 +1100
@@ -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)
--- a/contrib/recievestrip/mlmmj-recieve-strip.c	Sat Nov 01 01:42:14 2008 +1100
+++ b/contrib/recievestrip/mlmmj-recieve-strip.c	Sat Nov 01 01:45:49 2008 +1100
@@ -81,6 +81,9 @@
         int i = 0;
         size_t len;
 
+	if (!headers)
+		return 0;
+
         while(headers[i]) {
                 len = strlen(headers[i]);
                 if(strncasecmp(line, headers[i], len) == 0)