diff src/context.cpp @ 263:e118fd2c6af0

fix unauthenticated rate limit bug for empty mail from; move unauthenticate rate limit checks after spam filtering
author Carl Byington <carl@five-ten-sg.com>
date Sat, 21 Jul 2012 12:35:19 -0700
parents be939802c64e
children 582cfb9c4031
line wrap: on
line diff
--- a/src/context.cpp	Sat Jul 21 09:16:57 2012 -0700
+++ b/src/context.cpp	Sat Jul 21 12:35:19 2012 -0700
@@ -854,6 +854,7 @@
 
 
 bool CONTEXT::is_unauthenticated_limited(const char *user) {
+    if (!user) return false;
     rcpt_rates::iterator i = rcpt_per_hour.find(user);  // look for sender user@email limiting
     if (i != rcpt_per_hour.end()) return true;          // found user@email limiting
     const char *f = strchr(user, '@');