summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-06-24 18:54:04 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2008-06-24 18:54:04 +0200
commit3f55816a771fe5fcd02b5e2407d328bba770af73 (patch)
tree565ee3471f7a941d9693fddffa2b751f6800f471
parent9479bedcc25bc27757114f67c1836082da6a2a47 (diff)
downloadrsyslog-3f55816a771fe5fcd02b5e2407d328bba770af73.tar.gz
rsyslog-3f55816a771fe5fcd02b5e2407d328bba770af73.tar.xz
rsyslog-3f55816a771fe5fcd02b5e2407d328bba770af73.zip
gnu error status must be set after retry operation
... otherwise, we check an invalid error state.
-rw-r--r--runtime/nsdsel_gtls.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/nsdsel_gtls.c b/runtime/nsdsel_gtls.c
index 368c4df3..90117d6c 100644
--- a/runtime/nsdsel_gtls.c
+++ b/runtime/nsdsel_gtls.c
@@ -149,6 +149,8 @@ doRetry(nsd_gtls_t *pNsd)
case gtlsRtry_recv:
dbgprintf("retrying gtls recv, nsd: %p\n", pNsd);
CHKiRet(gtlsRecordRecv(pNsd));
+ pNsd->rtryCall = gtlsRtry_None; /* we are done */
+ gnuRet = 0;
break;
default:
assert(0); /* this shall not happen! */