git.samba.org
/
kai
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
98e2fe5
)
Probably fixes a crash during name resolution when log level >= 10
author
Ted Percival
<ted.percival@quest.com>
Tue, 3 Feb 2009 22:25:31 +0000
(14:25 -0800)
committer
Jeremy Allison
<jra@samba.org>
Tue, 3 Feb 2009 22:25:31 +0000
(14:25 -0800)
and libc segfaults if printf is passed NULL for a "%s" arg
(eg. Solaris).
source3/libsmb/namequery.c
patch
|
blob
|
history
diff --git
a/source3/libsmb/namequery.c
b/source3/libsmb/namequery.c
index 05679570d419d573fcaf4bbed41333c469fd8820..ac38d40271757f623a02ee376dec48c158532d3e 100644
(file)
--- 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)) ==