From 8a98adf7dd4c9e7b30ad4f5301e33f7d01df097a Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Wed, 16 Apr 2003 14:23:01 +0000 Subject: Fix segfault by getting this the right way around (This used to be commit 8ba6148c69031e9a82687d4d006e1fa7ada21e91) --- source3/utils/net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/utils/net.c b/source3/utils/net.c index 5d526e22df..a2ce1f5f1a 100644 --- a/source3/utils/net.c +++ b/source3/utils/net.c @@ -79,7 +79,7 @@ struct in_addr opt_dest_ip; uint32 get_sec_channel_type(const char *param) { - if (param && *param) { + if (!(param && *param)) { return get_default_sec_channel(); } else { if (strcasecmp(param, "PDC")==0) { -- cgit