summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libcli/cldap/cldap.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libcli/cldap/cldap.c b/libcli/cldap/cldap.c
index 8d7cbb0408..b7df9d2283 100644
--- a/libcli/cldap/cldap.c
+++ b/libcli/cldap/cldap.c
@@ -341,8 +341,12 @@ NTSTATUS cldap_socket_init(TALLOC_CTX *mem_ctx,
if (!local_addr) {
/*
- * Here we the address family of the remote address.
+ * Here we know the address family of the remote address.
*/
+ if (fam == NULL) {
+ return NT_STATUS_INVALID_PARAMETER_MIX;
+ }
+
ret = tsocket_address_inet_from_strings(c, fam,
NULL, 0,
&any);