If apr_pollcb_create_ex() is called with a non-default pollset method,
it tries to use the user-specified method, and fails back to the
platform default if the user-specified method is not available on the
current platform. The fall-back code path is buggy, however: the
*pollcb pointer is reset to NULL (unix/pollcb.c:106 in trunk) before
the default pollset provider's create method is called on line 120.

Attached is a patch against trunk; the same issue exists in the 1.4 branch.

Neil

Attachment: pollcb_nondefault_crash-1.patch
Description: Binary data

Reply via email to