summaryrefslogtreecommitdiff
path: root/sbin/unwind/libunbound/util/ub_event_pluggable.c
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/unwind/libunbound/util/ub_event_pluggable.c')
-rw-r--r--sbin/unwind/libunbound/util/ub_event_pluggable.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/unwind/libunbound/util/ub_event_pluggable.c b/sbin/unwind/libunbound/util/ub_event_pluggable.c
index 235bba6ba79..4280d4db1a3 100644
--- a/sbin/unwind/libunbound/util/ub_event_pluggable.c
+++ b/sbin/unwind/libunbound/util/ub_event_pluggable.c
@@ -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);
}
}