From: Howard Chu Date: Thu, 28 Nov 2002 17:20:17 +0000 (+0000) Subject: Fix ITS#2214, clear gs->matched after freeing it. X-Git-Tag: NO_SLAP_OP_BLOCKS~751 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0c5d1dc00f1b19fcaee7776acfa3c09a3c079d8a;p=openldap Fix ITS#2214, clear gs->matched after freeing it. --- diff --git a/servers/slapd/backglue.c b/servers/slapd/backglue.c index 1195aad687..eb58fbbaa0 100644 --- a/servers/slapd/backglue.c +++ b/servers/slapd/backglue.c @@ -195,6 +195,7 @@ glue_back_response ( gs->err = err; if (gs->err == LDAP_SUCCESS && gs->matched) { free (gs->matched); + gs->matched = NULL; gs->matchlen = 0; } if (gs->err != LDAP_SUCCESS && matched) {