Summary: | [Patch] Segmentation fault in dbd_remove | ||
---|---|---|---|
Product: | Apache httpd-2 | Reporter: | Reimo Rebane <rebanerebane> |
Component: | mod_session_dbd | Assignee: | Apache HTTPD Bugs Mailing List <bugs> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | chris, zhaozg |
Priority: | P2 | Keywords: | FixedInTrunk, PatchAvailable |
Version: | 2.4-HEAD | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Linux | ||
Attachments: | Patch to fix segfault |
Description
Reimo Rebane
2012-06-22 08:30:48 UTC
Created attachment 29117 [details]
Patch to fix segfault
The remove method wasn't properly initializing the dbd methods. This fixes that issue by using the init method like the rest of the code.
*** Bug 53029 has been marked as a duplicate of this bug. *** Thanks for the report. I will apply a slightly modified version of your patch to trunk and propose it for backport in 2.4.x branch next week or so. The applied patch includes an additional test against the return value from dbd_init. This avoids a potential NULL pointer deference if APR_EGENERAL was returned. In such a case, dbd remains unmodified. rv = apr_dbd_pvbquery(dbd->driver ^ |_____ *** Bug 50012 has been marked as a duplicate of this bug. *** fixed in 2.4.4 |