mirror of
https://github.com/open5gs/open5gs.git
synced 2025-11-09 00:16:51 +00:00
fix: Ignore Unknown TLV type in PFCP/GTP (#871)
This commit is contained in:
@@ -451,8 +451,9 @@ static int tlv_parse_compound(void *msg, ogs_tlv_desc_t *parent_desc,
|
|||||||
while (tlv) {
|
while (tlv) {
|
||||||
desc = tlv_find_desc(&index, &offset, parent_desc, tlv);
|
desc = tlv_find_desc(&index, &offset, parent_desc, tlv);
|
||||||
if (desc == NULL) {
|
if (desc == NULL) {
|
||||||
ogs_error("Unexpected TLV type:%d", tlv->type);
|
ogs_warn("Unknown TLV type [%d]", tlv->type);
|
||||||
return OGS_ERROR;
|
tlv = tlv->next;
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
presence_p = (ogs_tlv_presence_t *)(p + offset);
|
presence_p = (ogs_tlv_presence_t *)(p + offset);
|
||||||
|
|||||||
Reference in New Issue
Block a user