Don't call a function which hasn't been defined

This commit is contained in:
Nick Porter 2021-07-15 17:55:33 +01:00
parent 3f7e164751
commit 2c3f764d61
No known key found for this signature in database
GPG Key ID: 8B6777429E35D782

View File

@ -666,7 +666,8 @@ ub_winsock_tcp_wouldblock(struct ub_event* ev, int eventbits)
fptr_ok(ev->vmt != &default_event_vmt ||
ev->vmt->winsock_tcp_wouldblock ==
my_winsock_tcp_wouldblock);
(*ev->vmt->winsock_tcp_wouldblock)(ev, eventbits);
if (ev->vmt->winsock_tcp_wouldblock)
(*ev->vmt->winsock_tcp_wouldblock)(ev, eventbits);
}
}