Michael Stefaniuc : dnsapi: Fixed missing lock release on error path.

Alexandre Julliard julliard at wine.codeweavers.com
Wed May 31 05:31:31 CDT 2006


Module: wine
Branch: refs/heads/master
Commit: 15c0db3623669af14c09fa1e41d565c289b9df5a
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=15c0db3623669af14c09fa1e41d565c289b9df5a

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Tue May 30 23:39:30 2006 +0200

dnsapi: Fixed missing lock release on error path.

---

 dlls/dnsapi/query.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/dlls/dnsapi/query.c b/dlls/dnsapi/query.c
index f1b31f7..9bdd706 100644
--- a/dlls/dnsapi/query.c
+++ b/dlls/dnsapi/query.c
@@ -628,7 +628,10 @@ #ifdef HAVE_RESOLV
     _res.options |= dns_map_options( options );
 
     if (servers && (ret = dns_set_serverlist( servers )))
+    {
+        UNLOCK_RESOLVER();
         return ret;
+    }
 
     ret = dns_do_query( name, type, options, result );
 




More information about the wine-cvs mailing list