diff options
author | Jeremy Harris <jgh146exb@wizmail.org> | 2014-11-27 16:26:44 +0000 |
---|---|---|
committer | Jeremy Harris <jgh146exb@wizmail.org> | 2014-11-27 16:35:10 +0000 |
commit | 13b449c67ca264de99ac5e01b77a8324672f8e07 (patch) | |
tree | 6119a52d9997a67208fd7cd88305583ecdc40188 | |
parent | 2b08f19207269c2862fe616598791b28d65187dd (diff) |
Fix buffer overrun in spam= acl condition. Bug 1552
-rw-r--r-- | 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 3a5349fc3..dab57ff12 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, "%s %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); |