]> 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>
Tue, 12 Mar 2019 23:51:56 +0000 (10:51 +1100)
lib/dns/sdlz.c

index 2fd1f900a8dd370bd6c362d05407e919db41ed9d..39f3032148b3e770475e53743e7d29c68028979a 100644 (file)
@@ -622,15 +622,19 @@ getnodedata(dns_db_t *db, const 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,