From 767820e462f43f6388aa512cff10b4ff3748e834 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Mon, 28 Aug 2006 02:27:49 +0000 Subject: r17866: Fix possible null deref - found by Stanford checker. Jeremy. (This used to be commit 84e8cc0593c20b1262965a320d89b72a3dc9b402) --- source3/lib/util_str.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/lib/util_str.c') diff --git a/source3/lib/util_str.c b/source3/lib/util_str.c index 2b647b0641..8639a9bc07 100644 --- a/source3/lib/util_str.c +++ b/source3/lib/util_str.c @@ -2056,7 +2056,7 @@ char* ipstr_list_make(char** ipstr_list, const struct ip_service* ip_list, int i int i; /* arguments checking */ - if (!ip_list && !ipstr_list) return 0; + if (!ip_list || !ipstr_list) return 0; *ipstr_list = NULL; -- cgit