summaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-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;