From d3220d9d58477f2a6ef7a78c3cf05cb232b57aff Mon Sep 17 00:00:00 2001 From: Ted Percival Date: Tue, 3 Feb 2009 14:10:20 -0800 Subject: [PATCH] Probably fixes a crash during name resolution when log level >= 10 and libc segfaults if printf is passed NULL for a "%s" arg (eg. Solaris). --- source/libsmb/namequery.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/libsmb/namequery.c b/source/libsmb/namequery.c index 023fd3f043b..62cb1bad24b 100644 --- a/source/libsmb/namequery.c +++ b/source/libsmb/namequery.c @@ -1225,7 +1225,7 @@ BOOL internal_resolve_name(const char *name, int name_type, *return_count = 0; DEBUG(10, ("internal_resolve_name: looking up %s#%x (sitename %s)\n", - name, name_type, sitename ? sitename : NULL)); + name, name_type, sitename ? sitename : "(null)")); if (allzeros || allones || is_address) { -- 2.11.4.GIT