From 4d2d33ee09941ddb211e21788c01d886730224c2 Mon Sep 17 00:00:00 2001 From: Matthieu Patou Date: Fri, 21 Oct 2011 16:11:41 +0200 Subject: libcli-cldap: avoid the case local == remote == NULL --- libcli/cldap/cldap.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'libcli/cldap') 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); -- cgit