diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2009-03-25 17:59:35 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2009-03-25 17:59:35 +0100 |
commit | 67e00c063122de13dd6c6354fa095978aa1773de (patch) | |
tree | 37e85b86b47488a79fcfacab6b1a4f25d456ad73 | |
parent | 611b3364491cf30dc866932a053ae925e1f182ac (diff) | |
download | rsyslog-67e00c063122de13dd6c6354fa095978aa1773de.tar.gz rsyslog-67e00c063122de13dd6c6354fa095978aa1773de.tar.xz rsyslog-67e00c063122de13dd6c6354fa095978aa1773de.zip |
bugfix: fixed some segaults on Solaris
where vsprintf() does not check for NULL pointers
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | tools/omfwd.c | 1 | ||||
-rw-r--r-- | tools/syslogd.c | 2 |
3 files changed, 3 insertions, 2 deletions
@@ -19,6 +19,8 @@ Version 4.1.6 [DEVEL] (rgerhards), 2009-03-?? - improved omfile so that it properly suspends itself if there is an i/o or file name generation error. This enables it to be used with the full high availability features of rsyslog's engine +- bugfix: fixed some segaults on Solaris, where vsprintf() does not + check for NULL pointers --------------------------------------------------------------------------- Version 4.1.5 [DEVEL] (rgerhards), 2009-03-11 - bugfix: parser did not correctly parse fields in UDP-received messages diff --git a/tools/omfwd.c b/tools/omfwd.c index 1dd184ef..7a945ce0 100644 --- a/tools/omfwd.c +++ b/tools/omfwd.c @@ -615,7 +615,6 @@ CODE_STD_STRING_REQUESTparseSelectorAct(1) } else { CHKmalloc(pData->f_hname = strdup((char*) q)); } -dbgprintf("hostname '%s', port '%s'\n", pData->f_hname, pData->port); /* process template */ CHKiRet(cflineParseTemplateName(&p, *ppOMSR, 0, OMSR_NO_RQD_TPL_OPTS, diff --git a/tools/syslogd.c b/tools/syslogd.c index 235bc52e..a2aead9a 100644 --- a/tools/syslogd.c +++ b/tools/syslogd.c @@ -3475,7 +3475,7 @@ int realMain(int argc, char **argv) /* END core initializations - we now come back to carrying out command line options*/ while((iRet = bufOptRemove(&ch, &arg)) == RS_RET_OK) { - dbgprintf("deque option %c, optarg '%s'\n", ch, arg); + dbgprintf("deque option %c, optarg '%s'\n", ch, (arg == NULL) ? "" : arg); switch((char)ch) { case '4': glbl.SetDefPFFamily(PF_INET); |