From owner-cvs-lib Fri Sep 1 21:16:25 1995 Return-Path: cvs-lib-owner Received: (from majordom@localhost) by freefall.FreeBSD.org (8.6.11/8.6.6) id VAA23918 for cvs-lib-outgoing; Fri, 1 Sep 1995 21:16:25 -0700 Received: (from wpaul@localhost) by freefall.FreeBSD.org (8.6.11/8.6.6) id VAA23906 ; Fri, 1 Sep 1995 21:16:22 -0700 Date: Fri, 1 Sep 1995 21:16:22 -0700 From: Bill Paul Message-Id: <199509020416.VAA23906@freefall.FreeBSD.org> To: CVS-commiters, cvs-lib Subject: cvs commit: src/lib/libc/yp yplib.c Sender: cvs-lib-owner@FreeBSD.org Precedence: bulk wpaul 95/09/01 21:16:22 Modified: lib/libc/yp yplib.c Log: Clear up a minor bogosity in yp_match(): we have YPMATCHCACHE turned on, which is fine, except that _yp_dobind() is called before we check the cache. The means we can return from the cache check (if we have a hit) without calling _yp_unbind(). We should do the cache check first and _then_ drop into the section that binds the server and does the yp_match query.