diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2013-06-26 12:28:35 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2013-06-26 12:28:35 +0200 |
commit | 28b06628d5cc6f53c3e2c0e0222bf5c465f66d40 (patch) | |
tree | 13422c09402ebe26ea1c99acc4bfdf8315b9a3ef /plugins/imptcp/imptcp.c | |
parent | 2debb085a54546ddb6310b759a29075a5e929c4b (diff) | |
download | rsyslog-28b06628d5cc6f53c3e2c0e0222bf5c465f66d40.tar.gz rsyslog-28b06628d5cc6f53c3e2c0e0222bf5c465f66d40.tar.bz2 rsyslog-28b06628d5cc6f53c3e2c0e0222bf5c465f66d40.zip |
bugfix: imptcp did not properly initialize compression status variable
could lead to segfault if stream:always compression mode was selected
Diffstat (limited to 'plugins/imptcp/imptcp.c')
-rw-r--r-- | plugins/imptcp/imptcp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/imptcp/imptcp.c b/plugins/imptcp/imptcp.c index 7856f0e0..d3a29470 100644 --- a/plugins/imptcp/imptcp.c +++ b/plugins/imptcp/imptcp.c @@ -1056,6 +1056,7 @@ addSess(ptcplstn_t *pLstn, int sock, prop_t *peerName, prop_t *peerIP) pSess->bSuppOctetFram = pLstn->bSuppOctetFram; pSess->inputState = eAtStrtFram; pSess->iMsg = 0; + pSess->bzInitDone = 0; pSess->bAtStrtOfFram = 1; pSess->peerName = peerName; pSess->peerIP = peerIP; |