diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2008-03-03 12:40:04 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2008-03-03 12:40:04 +0000 |
commit | cb71628f67e12081db2449eff83667e2a832f495 (patch) | |
tree | 77ff69744751c5fe9b3f99ad04010fb3d5f98cd0 /plugins/imtcp/imtcp.c | |
parent | 42730360196f1aaafaebb955c1a0a66a185e61ec (diff) | |
download | rsyslog-cb71628f67e12081db2449eff83667e2a832f495.tar.gz rsyslog-cb71628f67e12081db2449eff83667e2a832f495.tar.xz rsyslog-cb71628f67e12081db2449eff83667e2a832f495.zip |
fixed newly introduced bugs in imgssapi and imtcp and their helpers now
plain tcp works again
Diffstat (limited to 'plugins/imtcp/imtcp.c')
-rw-r--r-- | plugins/imtcp/imtcp.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/plugins/imtcp/imtcp.c b/plugins/imtcp/imtcp.c index efdc3e9c..9ef186b4 100644 --- a/plugins/imtcp/imtcp.c +++ b/plugins/imtcp/imtcp.c @@ -78,7 +78,7 @@ static rsRetVal onSessAccept(tcpsrv_t *pThis, tcps_sess_t **ppSess, int fd) { DEFiRet; - tcpsrv.SessAccept(pThis, ppSess, fd); + iRet = tcpsrv.SessAccept(pThis, ppSess, fd); RETiRet; } @@ -183,13 +183,8 @@ ENDafterRun BEGINmodExit CODESTARTmodExit - iRet = tcpsrv.Destruct(&pOurTcpsrv); -#if 0 // TODO: remove - /* Close the TCP inet socket. */ - if(sockTCPLstn != NULL && *sockTCPLstn) { - deinit_tcp_listener(); - } -#endif + if(pOurTcpsrv != NULL) + iRet = tcpsrv.Destruct(&pOurTcpsrv); ENDmodExit |