Bug 715282

Summary: Defects revealed by coverity scan
Product: Red Hat Enterprise Linux 6 Reporter: Michal Luscon <mluscon>
Component: yp-toolsAssignee: Honza Horak <hhorak>
Status: CLOSED WONTFIX QA Contact: qe-baseos-daemons
Severity: medium Docs Contact:
Priority: low    
Version: 6.1CC: ovasik
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-06-28 09:57:07 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Michal Luscon 2011-06-22 12:25:08 UTC
Description of problem:

yppasswd.c:667 - After if statement "pwd->pw_passwd" still might be null and function strncmp (line #683) may dereference it.

/src/yppasswd.c:451 - Function open returns -1 and variable fd is consequently tested only for NONULL.

Version-Release number of selected component (if applicable):
2.9-10