diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2009-08-17 16:23:37 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2009-08-17 16:23:37 +0200 |
commit | 9cab1036d23fdb59437ee6fcd82f041c555de094 (patch) | |
tree | af75c77ac3f7bb59298b7d6604efcaba2d25cb84 /tcpsrv.c | |
parent | aa10f7a16415112c014c6c628f2f25f4eb4beaa2 (diff) | |
download | rsyslog-9cab1036d23fdb59437ee6fcd82f041c555de094.tar.gz rsyslog-9cab1036d23fdb59437ee6fcd82f041c555de094.tar.xz rsyslog-9cab1036d23fdb59437ee6fcd82f041c555de094.zip |
bugfix: if tcp listen port could not be created, no error message was emitted
Diffstat (limited to 'tcpsrv.c')
-rw-r--r-- | tcpsrv.c | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -327,15 +327,19 @@ finalize_it: static rsRetVal create_tcp_socket(tcpsrv_t *pThis) { - tcpLstnPortList_t *pEntry; DEFiRet; + rsRetVal localRet; + tcpLstnPortList_t *pEntry; ISOBJ_TYPE_assert(pThis, tcpsrv); /* init all configured ports */ pEntry = pThis->pLstnPorts; while(pEntry != NULL) { - CHKiRet(initTCPListener(pThis, pEntry)); + localRet = initTCPListener(pThis, pEntry); + if(localRet != RS_RET_OK) { + errmsg.LogError(0, localRet, "Could not create tcp listener, ignoring port %s.", pEntry->pszPort); + } pEntry = pEntry->pNext; } |