Fix the empty aspath segments check. seg_size is never 0, this needs to use
authorclaudio <claudio@openbsd.org>
Thu, 20 Sep 2018 07:41:25 +0000 (07:41 +0000)
committerclaudio <claudio@openbsd.org>
Thu, 20 Sep 2018 07:41:25 +0000 (07:41 +0000)
commitd04df93831fe37af372e74dda5413ce59c0edfb0
tree4948ce0895b769d58ca931846a6f06f414da5d14
parent51491708bc8d00833c10032fdf9c61bedb3022ea
Fix the empty aspath segments check. seg_size is never 0, this needs to use
seg_len instead. Since seg_len is known early move the check up.
Found while hunting for the other bug in aspath_verify.
usr.sbin/bgpd/util.c