diff options
author | Niels Heinen <niels@FreeBSD.org> | 2005-07-25 19:32:17 +0000 |
---|---|---|
committer | Niels Heinen <niels@FreeBSD.org> | 2005-07-25 19:32:17 +0000 |
commit | cc1eee849ff746f3e3e020ac56500af4a41c2dd3 (patch) | |
tree | ab2efdd3484bea2cf9b99a73105b969a1df4210b /mail/nbsmtp/files | |
parent | - Fix MASTER_SITE_* together with :1 (tricksy!) (diff) |
Fixed format string vulnerability that might be exploitable if
the program runs in debug mode and is used to connect to an untrusted
SMTP server.
Approved by: nectar (mentor)
Notes
Notes:
svn path=/head/; revision=140110
Diffstat (limited to 'mail/nbsmtp/files')
-rw-r--r-- | mail/nbsmtp/files/patch-util.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/mail/nbsmtp/files/patch-util.c b/mail/nbsmtp/files/patch-util.c new file mode 100644 index 000000000000..48f78b790281 --- /dev/null +++ b/mail/nbsmtp/files/patch-util.c @@ -0,0 +1,11 @@ +--- util.orig Tue Jul 12 11:43:06 2005 ++++ util.c Tue Jul 12 11:43:32 2005 +@@ -187,7 +187,7 @@ + if (debug==0 || debug==1) + { + openlog("nbSMTP", LOG_PID, LOG_MAIL); +- syslog(priority,buffer); ++ syslog(priority,"%s",buffer); + closelog(); + } + else /* if (debug==2) */ |