git://git.exim.org
/
exim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix buffer overrun in spam= acl condition. Bug 1552
[exim.git]
/
src
/
src
/
spam.c
diff --git
a/src/src/spam.c
b/src/src/spam.c
index 3a5349fc37398ff5c4caa151a8f63057d0d8ec26..dab57ff129fe9d821516f4c1f627008b831610a5 100644
(file)
--- 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 */
(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);
{
log_write(0, LOG_MAIN,
"%s warning - invalid spamd address: '%s'", loglabel, address);