diff options
author | Michael Biebl <biebl@debian.org> | 2009-04-03 16:52:46 +0200 |
---|---|---|
committer | Michael Biebl <biebl@debian.org> | 2009-04-03 16:52:46 +0200 |
commit | ae1b7835db7c4a74ff2d2e48b34f6905a54e8627 (patch) | |
tree | 23f2a355e70dc4d86d291959c5f595adcb9be520 /plugins | |
parent | c84d74c258d54713cadf8dfbeff10fcb4d91624f (diff) | |
download | rsyslog-ae1b7835db7c4a74ff2d2e48b34f6905a54e8627.tar.gz |
Imported Upstream version 3.20.5upstream/3.20.5
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/imgssapi/imgssapi.c | 8 |
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; } |