mirror of
https://github.com/samba-team/samba.git
synced 2025-01-03 01:18:10 +03:00
dfs_server: Fix debug statement if searched_site is NULL
In file included from source4/include/includes.h:61, from dfs_server/dfs_server_ad.c:21: dfs_server/dfs_server_ad.c: In function ‘get_dcs.constprop’: lib/util/debug.h:200:12: error: ‘%s’ directive argument is null [-Werror=format-overflow=] 200 | && (dbgtext body) ) | ~^~~~~~~~~~~~~ dfs_server/dfs_server_ad.c:462:25: note: in expansion of macro ‘DEBUG’ 462 | DEBUG(2,(__location__ ": Site: %s %s\n", | ^~~~~ Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
3e6a6c00cc
commit
0c6fb4bfb0
@ -459,8 +459,11 @@ static NTSTATUS get_dcs(TALLOC_CTX *ctx, struct ldb_context *ldb,
|
||||
|
||||
if (searched_site == NULL ||
|
||||
strcmp(searched_site, site_name) != 0) {
|
||||
DEBUG(2,(__location__ ": Site: %s %s\n",
|
||||
searched_site, site_name));
|
||||
DEBUG(2,
|
||||
(__location__ ": Site: %s %s\n",
|
||||
searched_site != NULL ? searched_site
|
||||
: "UNKNOWN",
|
||||
site_name));
|
||||
|
||||
/*
|
||||
* Do all the site but the one of the client
|
||||
|
Loading…
Reference in New Issue
Block a user