windbindd: reword error message
authorGary Lockyer <gary@catalyst.net.nz>
Mon, 27 Aug 2018 04:43:00 +0000 (16:43 +1200)
committerGary Lockyer <gary@samba.org>
Thu, 1 Nov 2018 22:49:24 +0000 (23:49 +0100)
Reword the asprintf() out of memory message to make it clear where the
issue is.

Signed-off-by: Gary Lockyer <gary@catalyst.net.nz>
source3/winbindd/winbindd_cm.c

index f3f8d547c7e95ee6de00e991b2ceb504b5661bce..2e98c7634e8804d1b812a9aec938c68b1504be52 100644 (file)
@@ -241,7 +241,8 @@ static bool fork_child_dc_connect(struct winbindd_domain *domain)
 
        if (!override_logfile) {
                if (asprintf(&lfile, "%s/log.winbindd-dc-connect", get_dyn_LOGFILEBASE()) == -1) {
-                       DEBUG(0, ("fork_child_dc_connect: out of memory.\n"));
+                       DBG_ERR("fork_child_dc_connect: "
+                               "out of memory in asprintf().\n");
                        _exit(1);
                }
        }