]> git.sur5r.net Git - openldap/commitdiff
Fix ITS#2214, clear gs->matched after freeing it.
authorHoward Chu <hyc@openldap.org>
Thu, 28 Nov 2002 17:20:17 +0000 (17:20 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 28 Nov 2002 17:20:17 +0000 (17:20 +0000)
servers/slapd/backglue.c

index 1195aad687943004fcae78be55940770978e32fb..eb58fbbaa03a3c819d50518b261690b96b201631 100644 (file)
@@ -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) {