]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
lib: Some README.Coding for message_push_blob()
authorVolker Lendecke <vl@samba.org>
Thu, 2 Jul 2026 14:28:24 +0000 (16:28 +0200)
committerAnoop C S <anoopcs@samba.org>
Fri, 3 Jul 2026 04:47:29 +0000 (04:47 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Anoop C S <anoopcs@samba.org>
source3/lib/util.c

index 20e72c3ad8b513b0bacc643233921e8ca81f8de7..73b9e4d50f99ed868bb4496573dad6346196daa6 100644 (file)
@@ -223,8 +223,9 @@ ssize_t message_push_blob(uint8_t **outbuf, DATA_BLOB blob)
                return -1;
        }
 
-       if (!(tmp = talloc_realloc(NULL, *outbuf, uint8_t, newlen))) {
-               DEBUG(0, ("talloc failed\n"));
+       tmp = talloc_realloc(NULL, *outbuf, uint8_t, newlen);
+       if (tmp == NULL) {
+               DBG_ERR("talloc failed\n");
                return -1;
        }
        *outbuf = tmp;