Bug 28250 - Crash in LDAP cache util_ldap_search_node_copy
Summary: Crash in LDAP cache util_ldap_search_node_copy
Status: CLOSED FIXED
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: mod_ldap (show other bugs)
Version: 2.0.49
Hardware: Sun Solaris
: P3 critical (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords: PatchAvailable
Depends on:
Blocks:
 
Reported: 2004-04-07 09:18 UTC by Jari Ahonen
Modified: 2004-11-16 19:05 UTC (History)
1 user (show)



Attachments
Proposed patch (1.21 KB, patch)
2004-04-07 09:19 UTC, Jari Ahonen
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jari Ahonen 2004-04-07 09:18:36 UTC
LDAP cache code crashes in util_ldap_search_node_copy (file util_ldap_cache.c)if
the bindpw in cache node is NULL. This is because strdup() inside
util_ald_strdup() will try to copy the NULL pointer.

Note that the bindpw is normally not NULL when the cache is used with
mod_auth_ldap but I have made enhancements to ldap authorization that create
cache entries with bindpw unset.

The attached patch fixes this problem.
Comment 1 Jari Ahonen 2004-04-07 09:19:35 UTC
Created attachment 11162 [details]
Proposed patch
Comment 2 Graham Leggett 2004-05-21 15:20:44 UTC
Fix committed to v2.1.0-dev, waiting for backport.
Comment 3 Graham Leggett 2004-05-21 23:52:39 UTC
Fixed in v2.0.50-dev.