From 5ae122ed7a76e984cc9a8524c03a94bfe42232e3 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sat, 15 Aug 2009 22:04:13 +0200 Subject: [PATCH] s3:winbind: Fix a potential segfault in libwbclient --- nsswitch/libwbclient/wbc_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nsswitch/libwbclient/wbc_util.c b/nsswitch/libwbclient/wbc_util.c index fcb7671d8388..7f3b61bb25d4 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 */ -- 2.34.1