[exim-cvs] Fix buffer overrun in spam= acl condition. Bug 1…

Góra strony
Delete this message
Reply to this message
Autor: Exim Git Commits Mailing List
Data:  
Dla: exim-cvs
Temat: [exim-cvs] Fix buffer overrun in spam= acl condition. Bug 1552
Gitweb: http://git.exim.org/exim.git/commitdiff/d6e35dd0017bc6f84aa7123fec76fcf507a04d01
Commit:     d6e35dd0017bc6f84aa7123fec76fcf507a04d01
Parent:     a56cc2b8851e3c076eb064712249aee81a08ef87
Author:     Jeremy Harris <jgh146exb@???>
AuthorDate: Thu Nov 27 16:26:44 2014 +0000
Committer:  Jeremy Harris <jgh146exb@???>
CommitDate: Mon Jan 12 18:58:34 2015 +0000


    Fix buffer overrun in spam= acl condition.  Bug 1552
---
 src/src/spam.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/src/src/spam.c b/src/src/spam.c
index ec0ae93..dab57ff 100644
--- a/src/src/spam.c
+++ b/src/src/spam.c
@@ -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);