From b79f9b087054fd3b5c5cddfc89e4c56434309d34 Mon Sep 17 00:00:00 2001
From: Günther Deschner <gd@samba.org>
Date: Thu, 30 Aug 2007 09:15:07 +0000
Subject: r24797: Fix logic in dsgetdcname().

Guenther
(This used to be commit aca2d78db139ed32bcedec9861e83cb8c42809cf)
---
 source3/libsmb/dsgetdcname.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'source3')

diff --git a/source3/libsmb/dsgetdcname.c b/source3/libsmb/dsgetdcname.c
index 90e6d49274..384b9ec48d 100644
--- a/source3/libsmb/dsgetdcname.c
+++ b/source3/libsmb/dsgetdcname.c
@@ -445,7 +445,7 @@ static NTSTATUS DsGetDcName_cache_fetch(TALLOC_CTX *mem_ctx,
 	}
 
 	if ((flags & DS_IP_REQUIRED) &&
-	    !((*info)->domain_controller_address_type != ADS_INET_ADDRESS)) {
+	    ((*info)->domain_controller_address_type != ADS_INET_ADDRESS)) {
 	    	return NT_STATUS_INVALID_PARAMETER_MIX;
 	}
 
-- 
cgit