From 0a5eb2eb5cd8adc30727787ae7859f20897f79c1 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Tue, 5 Feb 2013 15:07:32 -0500 Subject: Fix a locking error in bufferevent_socket_get_dns_error. Patch from Ka-Hing Cheung. --- bufferevent_sock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bufferevent_sock.c b/bufferevent_sock.c index 19e90d5a..9b0caf24 100644 --- a/bufferevent_sock.c +++ b/bufferevent_sock.c @@ -515,7 +515,7 @@ bufferevent_socket_get_dns_error(struct bufferevent *bev) BEV_LOCK(bev); rv = bev_p->dns_error; - BEV_LOCK(bev); + BEV_UNLOCK(bev); return rv; } -- cgit v1.2.1