changeset 2968:16fb75d6ac70

* src/dns.c: Remove spurious mutex unlock in cyg_res_getaddrinfo() when name lookup string is too long. Patch from Kelvin Lawson.
author jld
date Wed, 29 Sep 2010 10:13:28 +0000
parents a98ace8abb52
children 7b425c007a6c
files packages/net/ns/dns/current/ChangeLog packages/net/ns/dns/current/src/dns.c
diffstat 2 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/packages/net/ns/dns/current/ChangeLog
+++ b/packages/net/ns/dns/current/ChangeLog
@@ -1,3 +1,8 @@
+2010-09-29  Kelvin Lawson  <kelvinl@users.sf.net>
+
+	* src/dns.c: Remove spurious mutex unlock in cyg_res_getaddrinfo()
+	when name lookup string is too long.
+
 2008-08-12  Jonathan Larmour  <jifl@eCosCentric.com>
 
 	* src/dns.c: id global should be unsigned, in line with DNS header.
--- a/packages/net/ns/dns/current/src/dns.c
+++ b/packages/net/ns/dns/current/src/dns.c
@@ -593,7 +593,6 @@ cyg_dns_getaddrinfo(const char * hostnam
     
     if (domainname) {
         if ((strlen(hostname) + strlen(domainname)) > 254) {
-            cyg_drv_mutex_unlock(&dns_mutex);
             CYG_REPORT_RETVAL( -EAI_FAIL );
             return -EAI_FAIL;
         }