Bug 519455
Summary: | Should not attempt to pop SASL IO layer if not using SASL IO | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Retired] 389 | Reporter: | Vitaly Kuznetsov <vitty> | ||||||
Component: | Security - SASL | Assignee: | Rich Megginson <rmeggins> | ||||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Viktor Ashirov <vashirov> | ||||||
Severity: | medium | Docs Contact: | |||||||
Priority: | low | ||||||||
Version: | 1.2.1 | CC: | jgalipea, nkinder | ||||||
Target Milestone: | --- | ||||||||
Target Release: | --- | ||||||||
Hardware: | All | ||||||||
OS: | Linux | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2015-12-07 16:57:28 UTC | Type: | --- | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Bug Depends On: | |||||||||
Bug Blocks: | 434914, 519216 | ||||||||
Attachments: |
|
Description
Vitaly Kuznetsov
2009-08-26 17:03:51 UTC
Are you using a build of NSPR with PR_ASSERT enabled? (I'm not good with nspr) Yes, we build nspr-4.8.0 with -DDEBUG=1 (As I see equal to -DFORCE_PR_ASSERT=1) Ok. The problem is that we pop the SASL IO layer even if there is no SASL IO layer. There is no bad effect. The fix will be to check to see if SASL IO has been enabled, and if the layer contains the SASL IO layer. This targeted for the next bug fix release. Thanks, I'll trace git commits ;) Created attachment 362292 [details]
Simple patch to fix problem (check for c_prfd in connection before calling sasl_io_cleanup)
Created attachment 362324 [details]
revised patch
To ssh://git.fedorahosted.org/git/389/ds.git 56b9868..7f9f261 master -> master commit 7f9f26112388c6915fafb1b60b41a2d3e1e4e51e Author: Rich Megginson <rmeggins> Date: Wed Sep 23 09:52:29 2009 -0600 Reviewed by: nkinder (Thanks!) Fix Description: Before attempting to pop the SASL IO layer from the prfd, first make sure we are using sasl IO, the prfd is not NULL, and the prfd has a SASL IO layer on it. This also fixes a bug with setting nsslapd-localhost in the bootstrap code - if you are using a system that does not have DNS configured correctly, you may want to force the SASL code to use the nsslapd-localhost for the FQDN. Platforms tested: RHEL5 x86_64 Flag Day: no Doc impact: no verified - SASL nightly acceptance tests passing - all supported platforms |