]> git.sur5r.net Git - bacula/bacula/commitdiff
dedup fix bextract bug
authorAlain Spineux <alain@baculasystems.com>
Fri, 16 Oct 2015 13:13:51 +0000 (15:13 +0200)
committerKern Sibbald <kern@sibbald.com>
Sat, 21 Nov 2015 17:27:06 +0000 (09:27 -0800)
some pointers were not restored:

   if (restoredatap) {
      rec->data = orgdata;
      rec->data_len = orgdata_len;
   }

bacula/src/stored/bextract.c

index baeb42ef0804d7f273836aa37edb631312db0fda..f6d65f352e62633e7d89b09eccee2fda0629d191 100644 (file)
@@ -359,7 +359,8 @@ static bool record_cb(DCR *dcr, DEV_RECORD *rec)
       if (verbose != 1 && (num_records % 200000) == 0L) {
          fprintf(stderr, "\rfiles=%d records=%s\n", num_files, edit_uint64(num_records, ed1));
       }
-      return true;
+      ret = true;
+      goto bail_out;
    }
 
    /* File Attributes stream */