Corner case in puzzleFWrules.pl

Eric Oberlander <[email protected]>
Newsgroups gmane.comp.security.ipcop.devel
Message-ID <CAPkz44Fx_gFMBiabO079QEJYXOpXLD1b_UgYOwRDx6Z4nDtvYg@mail.gmail.com>
Hi Achim

I found an unusual situation where the NEXT_SWITCH_HOUR and
NEXT_SWITCH_MINUTE would not be set, where the Start time was after
the End Time, i.e. setting from 13:15 to 12:45, at 12:30 would result
in a NEXT_SWITCH at 13:15, instead of 12:45, because minutes 15 < 45.

Setting from 13:55 to 12:45, at 12:30 worked as expected, as minutes 55 > 45.

I've committed a fix to SVN, which I'm sure you may be able to improve on.

Regards

Eric

------------------------------------------------------------------------------
Using storage to extend the benefits of virtualization and iSCSI
Virtualization increases hardware utilization and delivers a new level of
agility. Learn what those decisions are and how to modernize your storage 
and backup environments for virtualization.
http://www.accelacomm.com/jaw/sfnl/114/51434361/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.