]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:passdb: use DBG_ERR() for 'talloc_strdup failed' messages
authorStefan Metzmacher <metze@samba.org>
Fri, 26 Jan 2024 08:21:03 +0000 (09:21 +0100)
committerStefan Metzmacher <metze@samba.org>
Fri, 5 Apr 2024 12:24:42 +0000 (12:24 +0000)
Otherwise it's completely unclear where the messages come from

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/passdb/pdb_smbpasswd.c
source3/passdb/pdb_tdb.c

index adeb0e308c01901ff3805126ce188caa4be29681..1296a32167dfd68b883ea4e4ba680910b7cefed9 100644 (file)
@@ -1607,7 +1607,7 @@ static bool smbpasswd_search_next_entry(struct pdb_search *search,
 
        if ((entry->account_name == NULL) || (entry->fullname == NULL)
            || (entry->description == NULL)) {
-               DEBUG(0, ("talloc_strdup failed\n"));
+               DBG_ERR("talloc_strdup failed\n");
                return false;
        }
 
@@ -1677,7 +1677,7 @@ static bool smbpasswd_search_users(struct pdb_methods *methods,
 
                if ((entry.account_name == NULL) || (entry.fullname == NULL)
                    || (entry.description == NULL)) {
-                       DEBUG(0, ("talloc_strdup failed\n"));
+                       DBG_ERR("talloc_strdup failed\n");
                        break;
                }
 
index f9ba193df3b8e569959d92ad5adb0e43d79f10b1..c42a912317b335da32250f3e8797b07424d248f3 100644 (file)
@@ -1264,7 +1264,7 @@ static bool tdbsam_search_next_entry(struct pdb_search *search,
 
        if ((entry->account_name == NULL) || (entry->fullname == NULL)
            || (entry->description == NULL)) {
-               DEBUG(0, ("talloc_strdup failed\n"));
+               DBG_ERR("talloc_strdup failed\n");
                return false;
        }