summaryrefslogtreecommitdiffstats
path: root/runtime/strmsrv.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2011-05-03 12:29:03 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2011-05-03 12:29:03 +0200
commit9430aa0d3a982d7759bb5d7db1be9b64064550ec (patch)
treea85e4173149435735ab0da8e186b58ad5d914c52 /runtime/strmsrv.c
parent1bfaf4ac06e82c0e4008a2b851043a09aee1a2e3 (diff)
parentec7501e7956f356d1e79a062340c244e67d5ef24 (diff)
downloadrsyslog-9430aa0d3a982d7759bb5d7db1be9b64064550ec.tar.gz
rsyslog-9430aa0d3a982d7759bb5d7db1be9b64064550ec.tar.bz2
rsyslog-9430aa0d3a982d7759bb5d7db1be9b64064550ec.zip
Merge branch 'v5-stable' into v5-devel
Diffstat (limited to 'runtime/strmsrv.c')
-rw-r--r--runtime/strmsrv.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/runtime/strmsrv.c b/runtime/strmsrv.c
index e66ad717..f448cd4f 100644
--- a/runtime/strmsrv.c
+++ b/runtime/strmsrv.c
@@ -521,6 +521,7 @@ Run(strmsrv_t *pThis)
strms_sess_t *pNewSess;
nssel_t *pSel;
ssize_t iRcvd;
+ rsRetVal localRet;
ISOBJ_TYPE_assert(pThis, strmsrv);
@@ -580,11 +581,12 @@ Run(strmsrv_t *pThis)
break;
case RS_RET_OK:
/* valid data received, process it! */
- if(strms_sess.DataRcvd(pThis->pSessions[iSTRMSess], buf, iRcvd) != RS_RET_OK) {
+ localRet = strms_sess.DataRcvd(pThis->pSessions[iSTRMSess], buf, iRcvd);
+ if(localRet != RS_RET_OK) {
/* in this case, something went awfully wrong.
* We are instructed to terminate the session.
*/
- errmsg.LogError(0, NO_ERRCODE, "Tearing down STRM Session %d - see "
+ errmsg.LogError(0, localRet, "Tearing down STRM Session %d - see "
"previous messages for reason(s)\n", iSTRMSess);
pThis->pOnErrClose(pThis->pSessions[iSTRMSess]);
strms_sess.Destruct(&pThis->pSessions[iSTRMSess]);