summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/utils/net.c2
1 files changed, 1 insertions, 1 deletions
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) {