]> git.puffer.fish Git - mirror/frr.git/commit
bgpd: Fixed incorrect calculation of pointer location
authorNigel Kukard <nkukard@lbsd.net>
Wed, 30 Aug 2017 09:39:36 +0000 (09:39 +0000)
committerNigel Kukard <nkukard@lbsd.net>
Thu, 31 Aug 2017 23:39:53 +0000 (23:39 +0000)
commit0a7dce9b9e82721ebf636a9ead267312425abbe8
treeeb4f173085671a017851348f09530fdef8866823
parent4265a53eba952d1108b58327558ad59d023ab186
bgpd: Fixed incorrect calculation of pointer location

com_index_to_delete[i] holds the location in lcom->val of where the
value is stored, we cannot just increment it by this value on each
iteration as we'll overflow the size of lcom->val.

Signed-off-by: Nigel Kukard <nkukard@lbsd.net>
bgpd/bgp_clist.c