summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2003-04-16 14:23:01 +0000
committerAndrew Bartlett <abartlet@samba.org>2003-04-16 14:23:01 +0000
commit8a98adf7dd4c9e7b30ad4f5301e33f7d01df097a (patch)
tree3c4a8787f994464d5207c10966e125948627f615 /source3
parent8d3501c8e8280a7a0c8d44461531dad7188bf39e (diff)
downloadsamba-8a98adf7dd4c9e7b30ad4f5301e33f7d01df097a.tar.gz
samba-8a98adf7dd4c9e7b30ad4f5301e33f7d01df097a.tar.bz2
samba-8a98adf7dd4c9e7b30ad4f5301e33f7d01df097a.zip
Fix segfault by getting this the right way around
(This used to be commit 8ba6148c69031e9a82687d4d006e1fa7ada21e91)
Diffstat (limited to 'source3')
-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) {