summaryrefslogtreecommitdiffstats
path: root/tcpsrv.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2009-08-17 16:23:37 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2009-08-17 16:23:37 +0200
commit9cab1036d23fdb59437ee6fcd82f041c555de094 (patch)
treeaf75c77ac3f7bb59298b7d6604efcaba2d25cb84 /tcpsrv.c
parentaa10f7a16415112c014c6c628f2f25f4eb4beaa2 (diff)
downloadrsyslog-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.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/tcpsrv.c b/tcpsrv.c
index e8ea2b98..6f9ca108 100644
--- a/tcpsrv.c
+++ b/tcpsrv.c
@@ -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;
}