Fix buffer overrun in spam= acl condition. Bug 1552
authorJeremy Harris <jgh146exb@wizmail.org>
Thu, 27 Nov 2014 16:26:44 +0000 (16:26 +0000)
committerJeremy Harris <jgh146exb@wizmail.org>
Mon, 12 Jan 2015 18:58:34 +0000 (18:58 +0000)
src/src/spam.c

index ec0ae934d49a0cc0c84e40e7b5a9bc90fc598d90..dab57ff129fe9d821516f4c1f627008b831610a5 100644 (file)
@@ -136,7 +136,7 @@ spam(uschar **listptr)
         (spamd_address_container *)store_get(sizeof(spamd_address_container));
 
       /* grok spamd address and port */
-      if (sscanf(CS address, "%23s %u", this_spamd->tcp_addr, &(this_spamd->tcp_port)) != 2)
+      if (sscanf(CS address, "%23s %u", this_spamd->tcp_addr, &this_spamd->tcp_port) != 2)
         {
         log_write(0, LOG_MAIN,
           "%s warning - invalid spamd address: '%s'", loglabel, address);