Bug 816250

Summary: PATCH: properly deal with crypt() returning NULL
Product: [Fedora] Fedora Reporter: Paul Wouters <pwouters>
Component: cyrus-saslAssignee: Petr Lautrbach <plautrba>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 17CC: plautrba, tmraz, vanmeeuwen+fedora
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-07-10 21:00:00 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
patch hanlding crypt() returning NULL none

Description Paul Wouters 2012-04-25 15:58:54 UTC
crypt() may return NULL, so one should not directly attempt to strcmp() or strdup() its return value.

This can happen in various cases, for example when the host is running in FIPS mode and the hash algorithm specified in the salt , eg MD5 using $1$, is not allowed.

Attached patch fixes this,

Comment 1 Paul Wouters 2012-04-25 15:59:30 UTC
Created attachment 580202 [details]
patch hanlding crypt() returning NULL

Comment 2 Petr Lautrbach 2012-06-20 14:06:45 UTC
Applied, thanks!

Comment 3 Fedora Update System 2012-06-25 09:13:04 UTC
cyrus-sasl-2.1.23-30.fc17 has been submitted as an update for Fedora 17.
https://admin.fedoraproject.org/updates/cyrus-sasl-2.1.23-30.fc17

Comment 4 Fedora Update System 2012-06-26 00:56:50 UTC
Package cyrus-sasl-2.1.23-30.fc17:
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing cyrus-sasl-2.1.23-30.fc17'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2012-9916/cyrus-sasl-2.1.23-30.fc17
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2012-07-10 21:00:00 UTC
cyrus-sasl-2.1.23-30.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.