summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;