Permalink
Browse files

Fix a locking error in bufferevent_socket_get_dns_error.

Patch from Ka-Hing Cheung.
  • Loading branch information...
1 parent c322c20 commit 0a5eb2eb5cd8adc30727787ae7859f20897f79c1 Nick Mathewson committed Feb 5, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 bufferevent_sock.c
View
@@ -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;
}

0 comments on commit 0a5eb2e

Please sign in to comment.