mirror of
https://github.com/samba-team/samba.git
synced 2025-02-23 09:57:40 +03:00
Avahi disables a timer by tv=NULL in avahi_timeout_update(), do not crash
This commit is contained in:
parent
202228d48b
commit
a20a710c94
@ -207,6 +207,13 @@ static void avahi_timeout_update(AvahiTimeout *t, const struct timeval *tv)
|
||||
{
|
||||
TALLOC_FREE(t->te);
|
||||
|
||||
if (tv == NULL) {
|
||||
/*
|
||||
* Disable this timer
|
||||
*/
|
||||
return;
|
||||
}
|
||||
|
||||
t->te = tevent_add_timer(t->ctx->ev, t, *tv, avahi_timeout_handler, t);
|
||||
/*
|
||||
* No failure mode defined here
|
||||
|
Loading…
x
Reference in New Issue
Block a user