From 13b449c67ca264de99ac5e01b77a8324672f8e07 Mon Sep 17 00:00:00 2001 From: Jeremy Harris Date: Thu, 27 Nov 2014 16:26:44 +0000 Subject: [PATCH] Fix buffer overrun in spam= acl condition. Bug 1552 --- src/src/spam.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.30.2