Closed kenkeys closed 5 years ago
Avoid crash in parsebgpbgp{open,notification,route_refresh}_clear() by checking for null parameter (actually observed in parsebgp_bgp_open_clear() after truncated message, but may have been possible in the other functions in similar situations).
Can confirm both https://github.com/CAIDA/libparsebgp/issues/49#issuecomment-485567437 and https://github.com/CAIDA/libparsebgp/issues/49#issuecomment-485032949 can be resolved by this PR.
Avoid crash in parsebgpbgp{open,notification,route_refresh}_clear() by checking for null parameter (actually observed in parsebgp_bgp_open_clear() after truncated message, but may have been possible in the other functions in similar situations).