git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
37d3a86
)
Probably fixes a crash during name resolution when log level >= 10
author
Ted Percival
<ted.percival@quest.com>
Tue, 3 Feb 2009 22:10:20 +0000
(14:10 -0800)
committer
Karolin Seeger
<kseeger@samba.org>
Thu, 30 Jul 2009 07:22:11 +0000
(09:22 +0200)
and libc segfaults if printf is passed NULL for a "%s" arg
(eg. Solaris).
(cherry picked from commit
d3220d9d58477f2a6ef7a78c3cf05cb232b57aff
)
source/libsmb/namequery.c
patch
|
blob
|
history
diff --git
a/source/libsmb/namequery.c
b/source/libsmb/namequery.c
index 023fd3f043bb63023cdf5b10cc66003c9a551387..62cb1bad24b41cae243b7dd530c105dac8ab9730 100644
(file)
--- 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) {