1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

s3:winbind: Fix a potential segfault in libwbclient

This commit is contained in:
Volker Lendecke 2009-08-15 22:04:13 +02:00
parent 0f64bb5b7e
commit 5ae122ed7a

View File

@ -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 */