summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-08-28 02:27:49 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:38:55 -0500
commit767820e462f43f6388aa512cff10b4ff3748e834 (patch)
tree343d22222675f45eea9c8c8d8ba1d8db5ba3c0e7 /source3/lib
parent8be645836834720967d21d96e0e9e300adfcafaf (diff)
downloadsamba-767820e462f43f6388aa512cff10b4ff3748e834.tar.gz
samba-767820e462f43f6388aa512cff10b4ff3748e834.tar.bz2
samba-767820e462f43f6388aa512cff10b4ff3748e834.zip
r17866: Fix possible null deref - found by Stanford checker.
Jeremy. (This used to be commit 84e8cc0593c20b1262965a320d89b72a3dc9b402)
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/util_str.c2
1 files changed, 1 insertions, 1 deletions
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;