From 8b2030be91c7bef5215d3da71b91084fefe2eddd Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Sun, 23 Mar 2008 12:57:45 +0000 Subject: handled case where relp server is not available on startup --- plugins/omrelp/omrelp.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/omrelp/omrelp.c b/plugins/omrelp/omrelp.c index 8240c118..673ef800 100644 --- a/plugins/omrelp/omrelp.c +++ b/plugins/omrelp/omrelp.c @@ -53,7 +53,7 @@ DEFobjCurrIf(errmsg) static relpEngine_t *pRelpEngine; /* our relp engine */ typedef struct _instanceData { - char f_hname[MAXHOSTNAMELEN+1]; + char f_hname[MAXHOSTNAMELEN+1]; int compressionLevel; /* 0 - no compression, else level for zlib */ char *port; int bInitialConnect; /* is this the initial connection request of our module? (0-no, 1-yes) */ @@ -116,7 +116,8 @@ static rsRetVal doConnect(instanceData *pData) if(pData->bInitialConnect) { iRet = relpCltConnect(pData->pRelpClt, family, (uchar*) pData->port, (uchar*) pData->f_hname); - pData->bInitialConnect = 0; + if(iRet == RELP_RET_OK) + pData->bInitialConnect = 0; } else { iRet = relpCltReconnect(pData->pRelpClt); } -- cgit