Index: libraries/libldap_r/tpool.c =================================================================== RCS file: /repo/OpenLDAP/pkg/ldap/libraries/libldap_r/tpool.c,v retrieving revision 1.30.2.17 retrieving revision 1.30.2.18 diff -u -r1.30.2.17 -r1.30.2.18 --- libraries/libldap_r/tpool.c 25 Jan 2007 13:06:48 -0000 1.30.2.17 +++ libraries/libldap_r/tpool.c 5 Mar 2007 14:24:49 -0000 1.30.2.18 @@ -1,4 +1,4 @@ -/* $OpenLDAP: pkg/ldap/libraries/libldap_r/tpool.c,v 1.30.2.17 2007/01/25 13:06:48 hyc Exp $ */ +/* $OpenLDAP: pkg/ldap/libraries/libldap_r/tpool.c,v 1.30.2.18 2007/03/05 14:24:49 ando Exp $ */ /* This work is part of OpenLDAP Software <http://www.openldap.org/>. * * Copyright 1998-2007 The OpenLDAP Foundation. @@ -664,7 +664,7 @@ int i; for ( i=MAXKEYS-1; i>=0; i--) { - if ( ctx[i].ltk_key ) + if ( ctx[i].ltk_key == NULL ) continue; if ( ctx[i].ltk_free ) ctx[i].ltk_free( ctx[i].ltk_key, ctx[i].ltk_data );