summaryrefslogtreecommitdiffstats
path: root/plugins/omrelp
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-03-23 11:48:18 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2008-03-23 11:48:18 +0000
commit102b640997ed1f3e9f660ab8f07b75155bd65ed7 (patch)
tree0eeb37fa724494ee45848d7af5ad19968f077062 /plugins/omrelp
parenta019fa8caa9b8898d201849d243f9838806265a9 (diff)
downloadrsyslog-102b640997ed1f3e9f660ab8f07b75155bd65ed7.tar.gz
rsyslog-102b640997ed1f3e9f660ab8f07b75155bd65ed7.tar.xz
rsyslog-102b640997ed1f3e9f660ab8f07b75155bd65ed7.zip
handled relp return states
Diffstat (limited to 'plugins/omrelp')
-rw-r--r--plugins/omrelp/omrelp.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/plugins/omrelp/omrelp.c b/plugins/omrelp/omrelp.c
index 63f945df..b8a859fb 100644
--- a/plugins/omrelp/omrelp.c
+++ b/plugins/omrelp/omrelp.c
@@ -115,6 +115,9 @@ static rsRetVal doConnect(instanceData *pData)
iRet = relpCltConnect(pData->pRelpClt, family, (uchar*) pData->port, (uchar*) pData->f_hname);
pData->bIsConnected = (iRet == RELP_RET_OK) ? 1 : 0;
+ if(iRet != RELP_RET_OK)
+ iRet = RS_RET_SUSPENDED;
+
RETiRet;
}
@@ -146,7 +149,7 @@ CODESTARTdoAction
/* forward */
ret = relpCltSendSyslog(pData->pRelpClt, (uchar*) pMsg, lenMsg);
RUNLOG_VAR("%d", ret);
- if(ret != RS_RET_OK) {
+ if(ret != RELP_RET_OK) {
/* error! */
dbgprintf("error forwarding via relp, suspending\n");
iRet = RS_RET_SUSPENDED;