fix SEGV in the case socket callback was registered
and no timeout function was registered.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@
1602409 13f79535-47bb-0310-9956-
ffa450edef68
timer_event_t *te;
int i = 0;
socket_callback_baton_t *baton = (socket_callback_baton_t *) pt->baton;
- baton->cancel_event->canceled = 1;
+ if(baton->cancel_event){
+ baton->cancel_event->canceled = 1;
+ }
/* We only signal once per N sockets with this baton */
if (!(baton->signaled)) {