git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f64bb5
)
s3:winbind: Fix a potential segfault in libwbclient
author
Volker Lendecke
<vl@samba.org>
Sat, 15 Aug 2009 20:04:13 +0000
(22:04 +0200)
committer
Volker Lendecke
<vl@samba.org>
Sun, 16 Aug 2009 08:38:24 +0000
(10:38 +0200)
nsswitch/libwbclient/wbc_util.c
patch
|
blob
|
history
diff --git
a/nsswitch/libwbclient/wbc_util.c
b/nsswitch/libwbclient/wbc_util.c
index fcb7671d8388c7c45d8a205ef98621241071d6b8..7f3b61bb25d4f22c25689501510c78d13b3e48f4 100644
(file)
--- a/
nsswitch/libwbclient/wbc_util.c
+++ b/
nsswitch/libwbclient/wbc_util.c
@@
-407,7
+407,7
@@
wbcErr wbcListTrusts(struct wbcDomainInfo **domains, size_t *num_domains)
p = (char *)response.extra_data.data;
- if (
strlen(p) == 0
) {
+ if (
(p == NULL) || (strlen(p) == 0)
) {
/* We should always at least get back our
own SAM domain */