]> git.sur5r.net Git - openldap/commitdiff
paranoid check
authorPierangelo Masarati <ando@openldap.org>
Sat, 16 Jul 2005 15:37:01 +0000 (15:37 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sat, 16 Jul 2005 15:37:01 +0000 (15:37 +0000)
libraries/libldap/request.c

index 089bf61cbebabab73e8dd1aeee4284212f25d4d6..f359af228cc75bb8c80dac703513a1c10bfdd250 100644 (file)
@@ -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;