mirror of
https://codeberg.org/1414codeforge/ubgpsuite.git
synced 2025-06-05 21:29:11 +02:00
[lonetix/bgp] Check for AGGREGATOR4 presence before checking its correctness
This commit is contained in:
@ -547,13 +547,15 @@ Bgpattr *Bgp_GetRealAggregator(const Bgpattrseg *tpa,
|
|||||||
if (Bgp_GetErrStat(NULL))
|
if (Bgp_GetErrStat(NULL))
|
||||||
return NULL; // forward error
|
return NULL; // forward error
|
||||||
|
|
||||||
if (!BGP_CHKAGGRSIZ(attr4, TRUE)) {
|
if (attr4) {
|
||||||
Bgp_SetErrStat(BGPEBADAGGR4);
|
if (!BGP_CHKAGGRSIZ(attr4, TRUE)) {
|
||||||
return NULL;
|
Bgp_SetErrStat(BGPEBADAGGR4);
|
||||||
}
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
attr = attr4;
|
attr = attr4;
|
||||||
asn32bit = TRUE;
|
asn32bit = TRUE;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
*isAsn32bit = asn32bit;
|
*isAsn32bit = asn32bit;
|
||||||
|
Reference in New Issue
Block a user