From owner-cvs-usrbin Sat Mar 29 12:29:17 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id MAA11403 for cvs-usrbin-outgoing; Sat, 29 Mar 1997 12:29:17 -0800 (PST) Received: (from wpaul@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id MAA11396; Sat, 29 Mar 1997 12:29:14 -0800 (PST) Date: Sat, 29 Mar 1997 12:29:14 -0800 (PST) From: Bill Paul Message-Id: <199703292029.MAA11396@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-usrbin Subject: cvs commit: src/usr.bin/passwd yp_passwd.c src/usr.bin/chpass pw_yp.c Sender: owner-cvs-usrbin@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk wpaul 97/03/29 12:29:14 Modified: usr.bin/passwd yp_passwd.c usr.bin/chpass pw_yp.c Log: Fix for PR #3141: check for NULL before strdup()ing pw->pw_class. (I'm not sure why this happens, though I suspect it may be because the server is configured with only passwd maps instead of both passwd and master.passwd maps. This is allowed, but I think in this case pw_class is left NULL, hence the problem.) Also applied similar patch to chpass/pw_yp.c just for paranoia's sake. Revision Changes Path 1.12 +2 -1 src/usr.bin/passwd/yp_passwd.c 1.10 +3 -2 src/usr.bin/chpass/pw_yp.c