diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2011-05-06 10:30:10 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2011-05-06 10:30:10 +0200 |
commit | 759904862dab6e580c6b890fd9ed75e1f29271f1 (patch) | |
tree | b804f701bca837c63827d40bdf40ba5602fd3416 /plugins/imtcp | |
parent | ff2bb192f2c566f189a9d104d83d7a70c7888774 (diff) | |
download | rsyslog-759904862dab6e580c6b890fd9ed75e1f29271f1.tar.gz rsyslog-759904862dab6e580c6b890fd9ed75e1f29271f1.tar.xz rsyslog-759904862dab6e580c6b890fd9ed75e1f29271f1.zip |
step: imtcp did not properly handle privilege drop
Diffstat (limited to 'plugins/imtcp')
-rw-r--r-- | plugins/imtcp/imtcp.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/plugins/imtcp/imtcp.c b/plugins/imtcp/imtcp.c index 3978ff5d..976fbf1f 100644 --- a/plugins/imtcp/imtcp.c +++ b/plugins/imtcp/imtcp.c @@ -339,6 +339,7 @@ CODESTARTactivateCnfPrePrivDrop } if(pOurTcpsrv == NULL) ABORT_FINALIZE(RS_RET_NO_RUN); + CHKiRet(tcpsrv.ConstructFinalize(pOurTcpsrv)); finalize_it: ENDactivateCnfPrePrivDrop @@ -357,12 +358,7 @@ ENDfreeCnf */ BEGINrunInput CODESTARTrunInput - /* TODO: we must be careful to start the listener here. Currently, tcpsrv.c seems to - * do that in ConstructFinalize - */ - CHKiRet(tcpsrv.ConstructFinalize(pOurTcpsrv)); iRet = tcpsrv.Run(pOurTcpsrv); -finalize_it: ENDrunInput |