summary refs log tree commit diff stats
path: root/src/common
diff options
context:
space:
mode:
authorPatrick Griffis <tingping@tingping.se>2016-02-19 09:41:24 -0500
committerPatrick Griffis <tingping@tingping.se>2016-02-19 09:41:24 -0500
commit94a7fbae025b4a42f781e22a1e0d06a98f214888 (patch)
treecbb213614b1525e676b671ae4dd94532fdb8bed4 /src/common
parentbae1ebce2fb9db73973112dfa64fb44bb55e1457 (diff)
Fix possible overflow
Diffstat (limited to 'src/common')
-rw-r--r--src/common/server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/server.c b/src/common/server.c
index 19e90969..709bfb22 100644
--- a/src/common/server.c
+++ b/src/common/server.c
@@ -484,7 +484,7 @@ ssl_cb_verify (int ok, X509_STORE_CTX * ctx)
 static int
 ssl_do_connect (server * serv)
 {
-	char buf[128];
+	char buf[256]; // ERR_error_string() MUST have this size
 
 	g_sess = serv->server_session;