From 14df0c7c57ae3f41c56c73c1d17e40783758ec40 Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Mon, 18 Feb 2008 10:14:34 +0000 Subject: bugfix: default port was not used on $UDPServerRun when none was specified - http://bugzilla.adiscon.com/show_bug.cgi?id=6 --- plugins/imudp/imudp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- cgit