| Summary: | Missing else keyword (openswan) | |||
|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 5 | Reporter: | Pavel Raiskup <praiskup> | |
| Component: | openswan | Assignee: | Paul Wouters <pwouters> | |
| Status: | CLOSED WONTFIX | QA Contact: | BaseOS QE Security Team <qe-baseos-security> | |
| Severity: | unspecified | Docs Contact: | ||
| Priority: | unspecified | |||
| Version: | 5.8 | CC: | amarecek, eparis, jrieden, kdudka, pkis, pwouters, sgrubb | |
| Target Milestone: | rc | Keywords: | Reopened | |
| Target Release: | --- | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | Doc Type: | Bug Fix | ||
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 747966 (view as bug list) | Environment: | ||
| Last Closed: | 2014-04-22 21:08:02 UTC | Type: | --- | |
| Regression: | --- | Mount Type: | --- | |
| Documentation: | --- | CRM: | ||
| Verified Versions: | Category: | --- | ||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
| Cloudforms Team: | --- | Target Upstream Version: | ||
| Bug Depends On: | ||||
| Bug Blocks: | 747966, 1049888 | |||
|
Description
Pavel Raiskup
2011-10-21 06:52:36 UTC
I looked at the code, and that seems like a false alarm. As the code checks for enc_desc is null or not before dereferencing it and return false. So this seems like a not a bug. Avesh, there is a bug there
enc_desc = ike_alg_get_encrypter(ealg);
suppose this is NULL
if (!enc_desc) {
It goes in here
/* failure: encrypt algo must be present */
snprintf(ugh_buf, ugh_buf_len, "encrypt algo not found");
ret = FALSE;
it does not return, so it hits the next line
} if ((key_len) && ((key_len < enc_desc->keyminlen)
segfaults here because it probably should be else if so that it skips over this block
Steve you are right, I mislooked it thinking ret=false is a return statement. i think that needs to be corrected. Fix commited, will be in openswan 2.6.37 note that ike_alg_get_encrypter() never returns NULL though... This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux release for currently deployed products. This request is not yet committed for inclusion in a release. This is already fixed as part of released openswan version in 5.9, so closing this. Re-opening for rhel-5.10.0 as it has not yet been fixed in 5.9 despite comment #13 claiming so. This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux release for currently deployed products. This request is not yet committed for inclusion in a release. |