Bug 22670

Summary: pam_ssh dumps core due to bug in env_destroy()
Product: Base System Reporter: SANETO Takanori <sanewo>
Component: binAssignee: Brian Feldman <green>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 5.0-CURRENT   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description SANETO Takanori 2000-11-07 22:20:04 UTC
env_destroy() in pam_ssh.c sets garbage to environ when called before env_commit(),
which may cause core dump later in the application.

Fix: following patch (in conjunction with PR bin/22614 patch) should fix the problem.
How-To-Repeat: 
Under xdm+pam environment, when ssh-agent invocation fail (because of missing /dev/random, etc.)
, xdm dumps core.
Comment 1 bill fumerola freebsd_committer freebsd_triage 2000-11-25 01:41:42 UTC
Responsible Changed
From-To: freebsd-bugs->green

green is investigating this one
Comment 2 Brian Feldman freebsd_committer freebsd_triage 2001-02-19 21:38:09 UTC
State Changed
From-To: open->closed

Fixed, thanks.