mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
s3:winbind: Fix a potential segfault in libwbclient
This commit is contained in:
parent
0f64bb5b7e
commit
5ae122ed7a
@ -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 */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user