Merge pull request #7988 from ton31337/fix/initialize_raw_data

bgpd: Initialize bgp_notify.raw_data before passing to bgp_notify_rec…
This commit is contained in:
Donald Sharp 2021-02-01 07:42:21 -05:00 committed by GitHub
commit 1d03b7b88b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1863,6 +1863,7 @@ static int bgp_notify_receive(struct peer *peer, bgp_size_t size)
bgp_notify.subcode = stream_getc(peer->curr);
bgp_notify.length = size - 2;
bgp_notify.data = NULL;
bgp_notify.raw_data = NULL;
/* Preserv notify code and sub code. */
peer->notify.code = bgp_notify.code;