]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Fix bug #2525 seg fault when doing estimate with accurate and MD5
authorMartin Simmons <martin@lispworks.com>
Tue, 17 Mar 2020 10:04:36 +0000 (11:04 +0100)
committerKern Sibbald <kern@sibbald.com>
Tue, 17 Mar 2020 14:04:35 +0000 (15:04 +0100)
bacula/src/filed/job.c

index 2e419055a3067bf945e45ba9dd193f2487f287a7..98a50bd3dc4439a2c7164188d15c43d74d707607 100644 (file)
@@ -305,6 +305,7 @@ static void *handle_director_request(BSOCK *dir)
    enable_backup_privileges(NULL, 1 /* ignore_errors */);
 
    for (quit=false; !quit;) {
+      jcr->buf_size = DEFAULT_NETWORK_BUFFER_SIZE;  /* overriden by some commands */
       if (!first) {      /* first call the read is done */
          /* Read command */
          if (dir->recv() < 0) {