]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Fix #10631 (1) remove unauthorized Jmsg() in BSOCK::recv()
authorAlain Spineux <alain@baculasystems.com>
Thu, 18 Jan 2024 13:24:12 +0000 (14:24 +0100)
committerEric Bollengier <eric@baculasystems.com>
Tue, 13 Feb 2024 09:36:03 +0000 (10:36 +0100)
- Jmsg() cannot be used in some critical part, recv() is on of them
  A Qmsg() and Pmsg() follow the removed Jmsg(), no information are lost
- This is probably not the root cause of the #10631 problem
- Replace the invalid Unicode "Registered Trade Mark" char

bacula/src/lib/bsock.c

index 3e1c20e939aeb8dc74bbc697573556a87c5eff31..d4f3f709ddef11f57838d1d541233e37b0b76b7c 100644 (file)
@@ -606,7 +606,6 @@ int32_t BSOCK::recv()
          msglen += offset;
       }
       if (nbytes < 0) {
-         Jmsg1(m_jcr, M_ERROR, 0, "Decompress error!!!! ERR=%d\n", nbytes);
          Pmsg3(000, "Decompress error!! pktsiz=%d cmsgsiz=%d nbytes=%d\n", pktsiz,
            psize, nbytes);
          b_errno = EIO;