diff --git a/libcli/cldap/cldap.c b/libcli/cldap/cldap.c index e54309190a0..eb4f102e6ab 100644 --- a/libcli/cldap/cldap.c +++ b/libcli/cldap/cldap.c @@ -930,8 +930,7 @@ char *cldap_netlogon_create_filter(TALLOC_CTX *mem_ctx, } if (io->in.domain_guid) { struct GUID guid; - NTSTATUS status; - status = GUID_from_string(io->in.domain_guid, &guid); + GUID_from_string(io->in.domain_guid, &guid); if (filter == NULL) { return NULL; }