diff options
author | Volker Lendecke <vl@samba.org> | 2009-08-15 22:04:13 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2009-08-16 10:38:24 +0200 |
commit | 5ae122ed7a76e984cc9a8524c03a94bfe42232e3 (patch) | |
tree | 61cee8a5177a561afe23a54358f76b828ea3aa20 | |
parent | 0f64bb5b7ef9b77b1865a5b6e0bdab331a618c38 (diff) | |
download | samba-5ae122ed7a76e984cc9a8524c03a94bfe42232e3.tar.gz samba-5ae122ed7a76e984cc9a8524c03a94bfe42232e3.tar.bz2 samba-5ae122ed7a76e984cc9a8524c03a94bfe42232e3.zip |
s3:winbind: Fix a potential segfault in libwbclient
-rw-r--r-- | nsswitch/libwbclient/wbc_util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nsswitch/libwbclient/wbc_util.c b/nsswitch/libwbclient/wbc_util.c index fcb7671d83..7f3b61bb25 100644 --- 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 */ |