Fix pf_map_addr() not to cause dividing by 0. This fixes problem when
authoryasuoka <yasuoka@openbsd.org>
Wed, 3 Jun 2015 11:57:37 +0000 (11:57 +0000)
committeryasuoka <yasuoka@openbsd.org>
Wed, 3 Jun 2015 11:57:37 +0000 (11:57 +0000)
commitc30ec822b882e49d3380a269de33893ba06790b5
tree3d33d16ab78b4022b4e664aa98b71873a4e73a12
parenta1c34178c2829a320c63d11163000e63d46d3609
Fix pf_map_addr() not to cause dividing by 0.  This fixes problem when
using table or dynamic interface addresses for source-hash.  Also
avoid calling arc4random_uniform() with upper_bound == 0.

ok mikeb
sys/net/pf_lb.c