bgp: fix reference to undefined variable