]> git.sur5r.net Git - openldap/commitdiff
NULL out spurious text (ITS#5688)
authorPierangelo Masarati <ando@openldap.org>
Sat, 6 Sep 2008 00:00:37 +0000 (00:00 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sat, 6 Sep 2008 00:00:37 +0000 (00:00 +0000)
servers/slapd/ava.c
servers/slapd/filter.c

index bad4e7706695d5dd00814a8bfdaa8a61dbe05b21..27589744227862f29a49f5e5f8c7068f533b1ff3 100644 (file)
@@ -111,6 +111,7 @@ get_ava(
                Debug( LDAP_DEBUG_FILTER,
                "get_ava: illegal value for attributeType %s\n", type.bv_val, 0, 0 );
                ber_dupbv_x( &aa->aa_value, &value, op->o_tmpmemctx );
+               *text = NULL;
                rc = LDAP_SUCCESS;
        }
 
index 60f4f0e063b8e944387fe98c1061322b1d02ba80..0a76e2bdd617ad181957297858a88747d6e15c50 100644 (file)
@@ -478,6 +478,7 @@ return_error:
                        return rc;
                }
 
+               *text = NULL;
                rc = LDAP_SUCCESS;
        }