X-Git-Url: https://git.sommitrealweird.co.uk/quagga-debian.git/blobdiff_plain/6d99eb2938e976229cb50d848a1bc491532b54f9..refs/heads/master:/bgpd/bgp_open.c?ds=inline diff --git a/bgpd/bgp_open.c b/bgpd/bgp_open.c index 2800423..d9ec4be 100644 --- a/bgpd/bgp_open.c +++ b/bgpd/bgp_open.c @@ -120,7 +120,8 @@ bgp_capability_vty_out (struct vty *vty, struct peer *peer) static void bgp_capability_mp_data (struct stream *s, struct capability_mp_data *mpc) { - mpc->afi = stream_getw (s); + afi_t afi = stream_getw (s); + memcpy(&mpc->afi, &afi, sizeof(mpc->afi)); mpc->reserved = stream_getc (s); mpc->safi = stream_getc (s); }