X-Git-Url: http://git.samba.org/?a=blobdiff_plain;f=libcli%2Fcldap%2Fcldap.c;fp=libcli%2Fcldap%2Fcldap.c;h=b7df9d22835c850497ccdbdbb6a26d932dbaac33;hb=4d2d33ee09941ddb211e21788c01d886730224c2;hp=8d7cbb0408b122d49fd5ff972e8ab8b94c6c257f;hpb=66530e91498cfa77a9d2e3a031f8a2e1c5ee6804;p=rusty%2Fsamba.git diff --git a/libcli/cldap/cldap.c b/libcli/cldap/cldap.c index 8d7cbb0408b..b7df9d22835 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);