From 5e84975adf776c074592a3bf039d4c6d825dbc54 Mon Sep 17 00:00:00 2001 From: Pierangelo Masarati Date: Sat, 16 Jul 2005 15:37:01 +0000 Subject: [PATCH] paranoid check --- libraries/libldap/request.c | 1 + 1 file changed, 1 insertion(+) 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; -- 2.39.5