diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2008-03-23 11:48:18 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2008-03-23 11:48:18 +0000 |
commit | 102b640997ed1f3e9f660ab8f07b75155bd65ed7 (patch) | |
tree | 0eeb37fa724494ee45848d7af5ad19968f077062 /plugins/omrelp | |
parent | a019fa8caa9b8898d201849d243f9838806265a9 (diff) | |
download | rsyslog-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.c | 5 |
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; |