From 3242b560d08275cf85b89510ff63a716913c6707 Mon Sep 17 00:00:00 2001 From: rofl0r Date: Wed, 18 Dec 2013 22:35:00 +0100 Subject: [PATCH] print generic ssl error in lack of more details still much more helpful than "(null)" --- rocksock.c | 1 + 1 file changed, 1 insertion(+) diff --git a/rocksock.c b/rocksock.c index bb7d11e..4d8ec32 100644 --- a/rocksock.c +++ b/rocksock.c @@ -62,6 +62,7 @@ int rocksock_seterror(rocksock* sock, rs_errorType errortype, int error, const c #ifdef USE_SSL case RS_ET_SSL: sock->lasterror.errormsg = (char*) rocksock_ssl_strerror(sock, error); + if(!sock->lasterror.errormsg) sock->lasterror.errormsg = (char*) rs_errorMap[RS_E_SSL_GENERIC]; break; #endif default: -- 2.11.4.GIT