summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-02-18 10:14:34 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2008-02-18 10:14:34 +0000
commit14df0c7c57ae3f41c56c73c1d17e40783758ec40 (patch)
tree038c951e03129c89ce3e10de572bc39c7eee0f9e
parent069c1d2b6f33da29548547d05338c08d0304f24d (diff)
downloadrsyslog-14df0c7c57ae3f41c56c73c1d17e40783758ec40.tar.gz
rsyslog-14df0c7c57ae3f41c56c73c1d17e40783758ec40.tar.xz
rsyslog-14df0c7c57ae3f41c56c73c1d17e40783758ec40.zip
bugfix: default port was not used on $UDPServerRun when none was specified
- http://bugzilla.adiscon.com/show_bug.cgi?id=6
-rw-r--r--plugins/imudp/imudp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/imudp/imudp.c b/plugins/imudp/imudp.c
index fa979039..a1262438 100644
--- a/plugins/imudp/imudp.c
+++ b/plugins/imudp/imudp.c
@@ -85,7 +85,7 @@ static rsRetVal addListner(void __attribute__((unused)) *pVal, uchar *pNewVal)
dbgprintf("Trying to open syslog UDP ports at %s:%s.\n",
(bindAddr == NULL) ? (uchar*)"*" : bindAddr, pNewVal);
- newSocks = create_udp_socket(bindAddr, (pNewVal == NULL) ? (uchar*) "514" : pNewVal, 1);
+ newSocks = create_udp_socket(bindAddr, (pNewVal == NULL || *pNewVal == '\0') ? (uchar*) "514" : pNewVal, 1);
if(newSocks != NULL) {
/* we now need to add the new sockets to the existing set */
if(udpLstnSocks == NULL) {