]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
pf_map_addr() can fail and in this case we should drop the packet,
authorGleb Smirnoff <glebius@FreeBSD.org>
Fri, 15 Aug 2014 14:02:24 +0000 (14:02 +0000)
committerGleb Smirnoff <glebius@FreeBSD.org>
Fri, 15 Aug 2014 14:02:24 +0000 (14:02 +0000)
commitafab0f7e016b87a62b113a4e585f5af2662105e5
treef7b720cf9a68c4dd8c5bd7c94c633e6318b6d2ce
parentd8e198e6b44d4c836e86ac13865635b64ee25b1a
pf_map_addr() can fail and in this case we should drop the packet,
otherwise bad consequences including a routing loop can occur.

Move pf_set_rt_ifp() earlier in state creation sequence and
inline it, cutting some extra code.

PR: 183997
Submitted by: Kajetan Staszkiewicz <vegeta tuxpowered.net>
Sponsored by: InnoGames GmbH
sys/netpfil/pf/pf.c
sys/netpfil/pf/pf.h