Skip to content

Commit 2477f7e

Browse files
committed
apr_pollset_create_ex(): Trap errors from pollset providers.
PR: 49094 Submitted by: Sami Tolvanen <sami.tolvanen mywot.com> Reviewed by: trawick git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@933271 13f79535-47bb-0310-9956-ffa450edef68
1 parent 08a7f51 commit 2477f7e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

poll/unix/pollset.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,9 @@ APR_DECLARE(apr_status_t) apr_pollset_create_ex(apr_pollset_t **ret_pollset,
152152
}
153153
pollset->provider = provider;
154154
}
155+
else if (rv != APR_SUCCESS) {
156+
return rv;
157+
}
155158
if (flags & APR_POLLSET_WAKEABLE) {
156159
/* Create wakeup pipe */
157160
if ((rv = apr_poll_create_wakeup_pipe(pollset->pool, &pollset->wakeup_pfd,

0 commit comments

Comments
 (0)