]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
add missing MAYBE_UNLOCK
authorMark Andrews <marka@isc.org>
Tue, 12 Mar 2019 23:51:56 +0000 (10:51 +1100)
committerMark Andrews <marka@isc.org>
Wed, 13 Mar 2019 22:01:31 +0000 (09:01 +1100)
(cherry picked from commit ff8bf617e7b2fd6d57528f223e4d05baf7c9ab17)

lib/dns/sdlz.c

index 9468101ae0e1750e7da5241a1f9f2ce37092b70d..0b9620c76cc933ae4b5d2fb767792f2e4271b1f6 100644 (file)
@@ -632,15 +632,19 @@ getnodedata(dns_db_t *db, dns_name_t *name, bool create,
                                result = dns_name_concatenate(dns_wildcardname,
                                                              fname, fname,
                                                              NULL);
-                               if (result != ISC_R_SUCCESS)
+                               if (result != ISC_R_SUCCESS) {
+                                       MAYBE_UNLOCK(sdlz->dlzimp);
                                        return (result);
+                               }
                                wild = fname;
                        }
 
                        isc_buffer_init(&b, wildstr, sizeof(wildstr));
                        result = dns_name_totext(wild, true, &b);
-                       if (result != ISC_R_SUCCESS)
+                       if (result != ISC_R_SUCCESS) {
+                               MAYBE_UNLOCK(sdlz->dlzimp);
                                return (result);
+                       }
                        isc_buffer_putuint8(&b, 0);
 
                        result = sdlz->dlzimp->methods->lookup(zonestr, wildstr,