Fixed LogError calls in omrelp.

This commit is contained in:
Chris Pilkington 2016-09-27 12:04:00 +10:00 committed by GitHub
parent a399cbaa21
commit 769b2f20d4

View File

@ -414,13 +414,13 @@ static rsRetVal doConnect(wrkrInstanceData_t *pWrkrData)
if(iRet == RELP_RET_OK) { if(iRet == RELP_RET_OK) {
pWrkrData->bIsConnected = 1; pWrkrData->bIsConnected = 1;
} else if(iRet == RELP_RET_ERR_NO_TLS) { } else if(iRet == RELP_RET_ERR_NO_TLS) {
errmsg.LogError(0, RS_RET_RELP_NO_TLS, "Could not connect, librelp does NOT " errmsg.LogError(0, RS_RET_RELP_NO_TLS, "omrelp: Could not connect, librelp does NOT "
"does not support TLS (most probably GnuTLS lib " "does not support TLS (most probably GnuTLS lib "
"is too old)!"); "is too old)!");
ABORT_FINALIZE(RS_RET_RELP_NO_TLS); ABORT_FINALIZE(RS_RET_RELP_NO_TLS);
} else if(iRet == RELP_RET_ERR_NO_TLS) { } else if(iRet == RELP_RET_ERR_NO_TLS) {
errmsg.LogError(0, RS_RET_RELP_NO_TLS_AUTH, errmsg.LogError(0, RS_RET_RELP_NO_TLS_AUTH,
"imrelp: could not activate relp TLS with " "omrelp: could not activate relp TLS with "
"authentication, librelp does not support it " "authentication, librelp does not support it "
"(most probably GnuTLS lib is too old)! " "(most probably GnuTLS lib is too old)! "
"Note: anonymous TLS is probably supported."); "Note: anonymous TLS is probably supported.");