-/* $OpenBSD: filter.c,v 1.7 2018/08/27 11:43:36 claudio Exp $ */
+/* $OpenBSD: filter.c,v 1.8 2018/08/27 12:15:20 claudio Exp $ */
/*
* Copyright (c) 2009, 2010 Martin Hedenfalk <martinh@openbsd.org>
char *vs;
struct ber_element *a, *vals, *v;
- if (plan->adesc != NULL)
+ if (plan->undefined)
+ return -1;
+ else if (plan->adesc != NULL)
a = ldap_get_attribute(root, plan->adesc);
else
a = ldap_find_attribute(root, plan->at);
const char *attr;
struct ber_element *a, *v;
- if (plan->adesc != NULL)
+ if (plan->undefined)
+ return -1;
+ else if (plan->adesc != NULL)
a = ldap_get_attribute(root, plan->adesc);
else
a = ldap_find_attribute(root, plan->at);
{
struct ber_element *a;
- if (plan->adesc != NULL)
+ if (plan->undefined)
+ return -1;
+ else if (plan->adesc != NULL)
a = ldap_get_attribute(root, plan->adesc);
else
a = ldap_find_attribute(root, plan->at);