1
0
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:
Volker Lendecke 2009-03-26 10:03:59 +01:00
parent 202228d48b
commit a20a710c94

View File

@ -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