From 4b293ed1e726e16831d421667dc4d2912846f3f3 Mon Sep 17 00:00:00 2001
From: Linus Nordberg <linus@nordu.net>
Date: Sun, 20 Feb 2011 17:17:54 +0100
Subject: Report SSL errors with error string rather than an integer.

---
 lib/packet.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'lib')

diff --git a/lib/packet.c b/lib/packet.c
index 4927725..9c6edf2 100644
--- a/lib/packet.c
+++ b/lib/packet.c
@@ -141,7 +141,7 @@ _event_cb (struct bufferevent *bev, short events, void *ctx)
 	      rs_debug (("%s: openssl error: %s\n", __func__,
 			 ERR_error_string (tlserr, NULL)));
 	      rs_err_conn_push_fl (pkt->conn, RSE_SSLERR, __FILE__, __LINE__,
-				   "%d", tlserr);
+				   ERR_error_string (tlserr, NULL));
 	    }
 	}
 #endif	/* RS_ENABLE_TLS */
-- 
cgit v1.1