summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2013-05-16 10:04:04 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2013-05-16 10:04:04 +0200
commitc1c441562b545369b35efc0f6dead2eec1035457 (patch)
treea39f581bcf5f3c3f3207407ad519fcf38de986fd
parenta336dc690f8e39ba10806b118c99e06f4b5dc862 (diff)
downloadrsyslog-c1c441562b545369b35efc0f6dead2eec1035457.tar.gz
rsyslog-c1c441562b545369b35efc0f6dead2eec1035457.tar.bz2
rsyslog-c1c441562b545369b35efc0f6dead2eec1035457.zip
fix regression on unencrypted queue files
-rw-r--r--runtime/stream.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/stream.c b/runtime/stream.c
index 3f42953e..53039056 100644
--- a/runtime/stream.c
+++ b/runtime/stream.c
@@ -603,6 +603,8 @@ strmReadBuf(strm_t *pThis, int *padBytes)
iLenRead = actualDataLen;
DBGOPRINT((obj_t*) pThis, "encrypted file %d pad bytes %d, actual "
"data %ld\n", pThis->fd, *padBytes, iLenRead);
+ } else {
+ *padBytes = 0;
}
pThis->iBufPtrMax = iLenRead;
bRun = 0; /* exit loop */