summaryrefslogtreecommitdiff
path: root/plugins/imgssapi
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2009-04-03 16:52:46 +0200
committerMichael Biebl <biebl@debian.org>2009-04-03 16:52:46 +0200
commitae1b7835db7c4a74ff2d2e48b34f6905a54e8627 (patch)
tree23f2a355e70dc4d86d291959c5f595adcb9be520 /plugins/imgssapi
parentc84d74c258d54713cadf8dfbeff10fcb4d91624f (diff)
downloadrsyslog-ae1b7835db7c4a74ff2d2e48b34f6905a54e8627.tar.gz
Imported Upstream version 3.20.5upstream/3.20.5
Diffstat (limited to 'plugins/imgssapi')
-rw-r--r--plugins/imgssapi/imgssapi.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/plugins/imgssapi/imgssapi.c b/plugins/imgssapi/imgssapi.c
index df08002..d2b5fd8 100644
--- a/plugins/imgssapi/imgssapi.c
+++ b/plugins/imgssapi/imgssapi.c
@@ -266,7 +266,8 @@ doOpenLstnSocks(tcpsrv_t *pSrv)
if(pGSrv->allowedMethods) {
/* fallback to plain TCP */
CHKiRet(tcpsrv.create_tcp_socket(pSrv));
- dbgprintf("Opened %d syslog TCP port(s).\n", *pRet);
+ } else {
+ ABORT_FINALIZE(RS_RET_GSS_ERR);
}
}
@@ -333,6 +334,11 @@ addGSSListener(void __attribute__((unused)) *pVal, uchar *pNewVal)
}
finalize_it:
+ if(iRet != RS_RET_OK) {
+ errmsg.LogError(0, NO_ERRCODE, "error %d trying to add listener", iRet);
+ if(pOurTcpsrv != NULL)
+ tcpsrv.Destruct(&pOurTcpsrv);
+ }
RETiRet;
}