From 50a392349a2e06ea5ff08e35cfb2558a1c97b993 Mon Sep 17 00:00:00 2001 From: Uros Majstorovic Date: Wed, 19 Jul 2017 15:19:54 +0200 Subject: ring buffer fixes --- code/proxy/proxy.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'code/proxy') diff --git a/code/proxy/proxy.c b/code/proxy/proxy.c index 0f90c20..ba21ca1 100644 --- a/code/proxy/proxy.c +++ b/code/proxy/proxy.c @@ -389,6 +389,7 @@ int ecp_proxy_init(ECPContext *ctx) { rv = ecp_conn_handler_init(&handler_b); if (rv) return rv; + handler_b.conn_create = proxyb_create; handler_b.conn_destroy = proxyb_destroy; handler_b.conn_open = proxyb_open; @@ -402,7 +403,7 @@ int ecp_proxy_init(ECPContext *ctx) { ctx->pr.pack_raw = proxy_pack_raw; #ifdef ECP_WITH_PTHREAD - pthread_mutex_init(&key_next_mutex, NULL); + pthread_mutex_init(&key_perma_mutex, NULL); pthread_mutex_init(&key_next_mutex, NULL); #endif -- cgit v1.2.3