aboutsummaryrefslogtreecommitdiffstats
path: root/dirmngr/ldap-misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'dirmngr/ldap-misc.c')
-rw-r--r--dirmngr/ldap-misc.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/dirmngr/ldap-misc.c b/dirmngr/ldap-misc.c
index 42f9c7afc..90f1d1f3c 100644
--- a/dirmngr/ldap-misc.c
+++ b/dirmngr/ldap-misc.c
@@ -298,13 +298,15 @@ ldap_parse_extfilter (const char *string, int silent,
{
if (!silent)
log_info ("LDAP filter does not start with a left parentheses\n");
- return gpg_error (GPG_ERR_SYNTAX);
+ err = gpg_error (GPG_ERR_SYNTAX);
+ goto leave;
}
if (string[strlen(string)-1] != ')')
{
if (!silent)
log_info ("LDAP filter does not end with a right parentheses\n");
- return gpg_error (GPG_ERR_SYNTAX);
+ err = gpg_error (GPG_ERR_SYNTAX);
+ goto leave;
}
filter = xtrystrdup (string);