From owner-p4-projects@FreeBSD.ORG Tue Nov 21 17:25:06 2006 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 306B416B813; Tue, 21 Nov 2006 17:23:49 +0000 (UTC) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 6455A16B33B for ; Tue, 21 Nov 2006 17:21:47 +0000 (UTC) (envelope-from bushman@freebsd.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.FreeBSD.org (Postfix) with ESMTP id F35CD44101 for ; Tue, 21 Nov 2006 17:17:53 +0000 (GMT) (envelope-from bushman@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.6/8.13.6) with ESMTP id kALHIGNo068608 for ; Tue, 21 Nov 2006 17:18:16 GMT (envelope-from bushman@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.6/8.13.4/Submit) id kALHIGab068605 for perforce@freebsd.org; Tue, 21 Nov 2006 17:18:16 GMT (envelope-from bushman@freebsd.org) Date: Tue, 21 Nov 2006 17:18:16 GMT Message-Id: <200611211718.kALHIGab068605@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to bushman@freebsd.org using -f From: Michael Bushkov To: Perforce Change Reviews Cc: Subject: PERFORCE change 110295 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Nov 2006 17:25:06 -0000 http://perforce.freebsd.org/chv.cgi?CH=110295 Change 110295 by bushman@bushman_nss_ldap_cached on 2006/11/20 13:42:55 get**ent() calls should always return NULL after the end of the items list is reached. New session should be opened only after set**ent() call. Affected files ... .. //depot/projects/soc2006/nss_ldap_cached/src/lib/libc/net/nscache.c#6 edit Differences ... ==== //depot/projects/soc2006/nss_ldap_cached/src/lib/libc/net/nscache.c#6 (text) ==== @@ -361,9 +361,6 @@ res = 0; } else { free(buffer); - __close_cached_mp_read_session(rs); - rs = INVALID_CACHED_MP_READ_SESSION; - cache_info->set_mp_rs_func(rs); return (res == -1 ? NS_RETURN : NS_UNAVAIL); }