1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-01 04:58:35 +03:00

s3: Fix timeout calculation in event_add_to_poll_args

In the initial phase nmbd does not yet have timed events. This led to nmbd
not correctly registering its names in make test and certainly everywhere
else.

Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Mon Apr 11 14:35:45 CEST 2011 on sn-devel-104
This commit is contained in:
Volker Lendecke 2011-04-11 13:37:42 +02:00 committed by Volker Lendecke
parent e6cf92c574
commit 0958695022

View File

@ -166,7 +166,7 @@ bool event_add_to_poll_args(struct tevent_context *ev, TALLOC_CTX *mem_ctx,
return true;
}
if (ev->timer_events == NULL) {
*ptimeout = INT_MAX;
*ptimeout = MIN(*ptimeout, INT_MAX);
return true;
}