]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
address resource leak [RT #46413]
authorMark Andrews <marka@isc.org>
Thu, 26 Oct 2017 22:58:55 +0000 (09:58 +1100)
committerMark Andrews <marka@isc.org>
Thu, 26 Oct 2017 22:58:55 +0000 (09:58 +1100)
lib/dns/rbtdb.c

index 850f4b3131e2481e181ed91d7104a463519ebd20..85dabd2578b885d06ce7a8bc029cdfd4f9a68650 100644 (file)
@@ -7487,7 +7487,8 @@ deserialize32(void *arg, FILE *f, off_t offset) {
 
        header = (rbtdb_file_header_t *)(base + offset);
        if (!match_header_version(header)) {
-               return (ISC_R_FAILURE);
+               result = ISC_R_INVALIDFILE;
+               goto cleanup;
        }
 
        if (header->tree != 0) {