From ee048d5349de41224218aa9b7bb701093e6c8ab1 Mon Sep 17 00:00:00 2001 From: dmiller Date: Mon, 4 Jan 2016 16:48:09 +0000 Subject: [PATCH] Avoid printf on NULL pointer if no string is registered for the error code. --- nsock/src/nsock_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nsock/src/nsock_core.c b/nsock/src/nsock_core.c index 4b90930d2..fc4659a9f 100644 --- a/nsock/src/nsock_core.c +++ b/nsock/src/nsock_core.c @@ -718,7 +718,7 @@ static int do_actual_read(struct npool *ms, struct nevent *nse) { nse->status = NSE_STATUS_ERROR; nse->errnum = EIO; nsock_log_info("SSL_read() failed for reason %s on NSI %li", - ERR_reason_error_string(err), iod->id); + ERR_error_string(err, NULL), iod->id); return -1; } }