summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorTed Percival <ted.percival@quest.com>2009-02-03 14:25:31 -0800
committerJeremy Allison <jra@samba.org>2009-02-03 14:25:31 -0800
commit189a85dd68eb6c62272e51769d842afbf8389a4f (patch)
tree7ae3b11c829eda6ec4ccd193cec48159cd395109 /source3
parent98e2fe5e6d7634aa1ecf12b1b1fb23c82b3f16c5 (diff)
downloadsamba-189a85dd68eb6c62272e51769d842afbf8389a4f.tar.gz
samba-189a85dd68eb6c62272e51769d842afbf8389a4f.tar.bz2
samba-189a85dd68eb6c62272e51769d842afbf8389a4f.zip
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).
Diffstat (limited to 'source3')
-rw-r--r--source3/libsmb/namequery.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libsmb/namequery.c b/source3/libsmb/namequery.c
index 05679570d4..ac38d40271 100644
--- a/source3/libsmb/namequery.c
+++ b/source3/libsmb/namequery.c
@@ -1502,7 +1502,7 @@ NTSTATUS internal_resolve_name(const char *name,
*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 (is_ipaddress(name)) {
if ((*return_iplist = SMB_MALLOC_P(struct ip_service)) ==