Browse Source

respondd: fix crash caused by division by zero

Fixes: 31eb441db1 ("respondd: make delays specific for group and interface")
pull/222/head
Matthias Schiffer 3 years ago
parent
commit
9a364fb8d0
No known key found for this signature in database GPG Key ID: 16EF3F64CB201D9C
  1. 2
      net/respondd/src/respondd.c

2
net/respondd/src/respondd.c

@ -618,7 +618,7 @@ static void accept_request(struct request_schedule *schedule, int sock,
new_task->client_addr = addr;
bool is_scheduled;
if (iface) {
if (iface && iface->max_multicast_delay) {
// scheduling could fail because the schedule is full
new_task->scheduled_time = now + rand() % iface->max_multicast_delay;
is_scheduled = schedule_push_request(schedule, new_task);

Loading…
Cancel
Save