[Asterisk-Users] gotoiftime error

Tilghman Lesher tilghman at mail.jeffandtilghman.com
Tue Jul 1 10:39:13 MST 2003


On Tuesday 01 July 2003 12:13 pm, Paulo Mannheimer wrote:
> Sure, here it goes.
>
> As you may notice, a local instance of the variable ast_include is
> used in function pbx_builtin_gotoiftime
>
> As the local variable is not initialized to zero, its "minmask"
> bitfields contain garbage, thus sometimes yielding true for
> unallowed times.

Aha, yes, that's true.  This is because build_timing() sometimes
ditches out early, on an error condition.

> BTW, nice work on the bitfield logic.

Actually, no, I didn't write the bitfields -- that's Mark's work.  I
simply adapted the include code so that it could be harnessed
from an application.

-Tilghman




More information about the asterisk-users mailing list