summaryrefslogtreecommitdiffstats
path: root/runtime/nsd_ptcp.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-04-30 18:53:21 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2008-04-30 18:53:21 +0200
commitda889001432c7a9242d8a6ef947fe6887dc366f3 (patch)
treeac25db9964e73292a06c0a5cbe99b106889eb32e /runtime/nsd_ptcp.c
parent7350595761d32b93c6ae0e2d31cbcb880371fd9c (diff)
downloadrsyslog-da889001432c7a9242d8a6ef947fe6887dc366f3.tar.gz
rsyslog-da889001432c7a9242d8a6ef947fe6887dc366f3.tar.xz
rsyslog-da889001432c7a9242d8a6ef947fe6887dc366f3.zip
added $InputTCPServerStreamDriverMode config directive
Diffstat (limited to 'runtime/nsd_ptcp.c')
-rw-r--r--runtime/nsd_ptcp.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/runtime/nsd_ptcp.c b/runtime/nsd_ptcp.c
index 5bad3bf4..c5480a05 100644
--- a/runtime/nsd_ptcp.c
+++ b/runtime/nsd_ptcp.c
@@ -432,13 +432,11 @@ LstnInit(netstrms_t *pNS, void *pUsr, rsRetVal(*fAddLstn)(void*,netstrm_t*),
* construct a new netstrm obj and hand it over to the upper layers for inclusion
* into their socket array. -- rgerhards, 2008-04-23
*/
-RUNLOG_VAR("%d", sock);
CHKiRet(pNS->Drvr.Construct(&pNewNsd));
CHKiRet(pNS->Drvr.SetSock(pNewNsd, sock));
-RUNLOG;
+ CHKiRet(pNS->Drvr.SetMode(pNewNsd, netstrms.GetDrvrMode(pNS)));
CHKiRet(netstrms.CreateStrm(pNS, &pNewStrm));
pNewStrm->pDrvrData = (nsd_t*) pNewNsd;
-RUNLOG;
CHKiRet(fAddLstn(pUsr, pNewStrm));
pNewNsd = NULL;
pNewStrm = NULL;