Fix segfault by getting this the right way around
authorAndrew Bartlett <abartlet@samba.org>
Wed, 16 Apr 2003 14:23:01 +0000 (14:23 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 16 Apr 2003 14:23:01 +0000 (14:23 +0000)
source/utils/net.c

index 5d526e22dfe102fc7d7803de3c6e822ad27ad697..a2ce1f5f1ad80e8dc4659bf13c4d2664f3ddc150 100644 (file)
@@ -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) {