From kuku@gilberto.physik.rwth-aachen.de  Sat Mar 29 06:54:54 1997
Received: from Campino.Informatik.RWTH-Aachen.DE (campino.Informatik.RWTH-Aachen.DE [137.226.116.240])
          by freefall.freebsd.org (8.8.5/8.8.5) with ESMTP id GAA29184
          for <FreeBSD-gnats-submit@freebsd.org>; Sat, 29 Mar 1997 06:54:53 -0800 (PST)
Received: from gilberto.physik.rwth-aachen.de (gilberto.physik.rwth-aachen.de [137.226.31.2]) by Campino.Informatik.RWTH-Aachen.DE (RBI-Z-5/8.6.12)
	with ESMTP id PAA14926 for <FreeBSD-gnats-submit@freebsd.org>; Sat, 29 Mar 1997 15:55:03 +0100 (MET)
Received: (from kuku@localhost) by gilberto.physik.rwth-aachen.de (8.8.5/8.6.9) id QAA04606; Sat, 29 Mar 1997 16:07:24 +0100 (MET)
Message-Id: <199703291507.QAA04606@gilberto.physik.rwth-aachen.de>
Date: Sat, 29 Mar 1997 16:07:24 +0100 (MET)
From: Christoph Kukulies <kuku@gilberto.physik.rwth-aachen.de>
Reply-To: kuku@gilberto.physik.rwth-aachen.de
To: FreeBSD-gnats-submit@freebsd.org
Subject: passwd or passwd -y SEGV's
X-Send-Pr-Version: 3.2

>Number:         3141
>Category:       bin
>Synopsis:       passwd or passwd -y SEGV's
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Mar 29 07:00:01 PST 1997
>Closed-Date:    Sat Mar 29 12:30:01 PST 1997
>Last-Modified:  Sat Mar 29 12:32:21 PST 1997
>Originator:     Christoph Kukulies
>Release:        FreeBSD 3.0-CURRENT i386
>Organization:
I.Physikalisches Institut RWTH Aachen
>Environment:

	2.2.1-RELEASE (reportedly) and 3.0-current

>Description:

	passwd -y <user> on the NIS server crashes

>How-To-Repeat:

	on a FreeBSD 2.2.1 or 3.0-current NIS server, with
        linux clients (reportedly)
        type
               passwd <user>  or  passwd -y <user>
        
>Fix:
        /usr/src/usr.sbin/passwd/yp_passwd: line 104
        pw->pw_class is passed to strdup as a NULL pointer.
        Check for 0 and pass an empty string "" in that case.
	
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: wpaul 
State-Changed-When: Sat Mar 29 12:30:01 PST 1997 
State-Changed-Why:  

Fixed in passwd and chpass in FreeBSD-current: 

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 

The fix should be migrated to the 2.2 branch before the next release. 
>Unformatted:
