From: Pierangelo Masarati Date: Sat, 16 Jul 2005 15:37:01 +0000 (+0000) Subject: paranoid check X-Git-Tag: OPENLDAP_AC_BP~391 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5e84975adf776c074592a3bf039d4c6d825dbc54;p=openldap paranoid check --- diff --git a/libraries/libldap/request.c b/libraries/libldap/request.c index 089bf61cbe..f359af228c 100644 --- a/libraries/libldap/request.c +++ b/libraries/libldap/request.c @@ -612,6 +612,7 @@ void ldap_free_request_int( LDAP *ld, LDAPRequest *lr ) { if ( lr->lr_prev == NULL ) { + assert( ld->ld_requests == lr ); ld->ld_requests = lr->lr_next; } else { lr->lr_prev->lr_next = lr->lr_next;