mirror of
https://github.com/open5gs/open5gs.git
synced 2026-04-28 03:19:31 +00:00
Always make fqdn a NULL terminated string
This commit is contained in:
parent
31d3f575d2
commit
90cb00ced3
1 changed files with 1 additions and 0 deletions
|
|
@ -195,6 +195,7 @@ ogs_pfcp_extract_node_id(ogs_pfcp_message_t *message,
|
|||
}
|
||||
|
||||
memcpy(node_id, tlv_node_id->data, ogs_min(tlv_node_id->len, sizeof(ogs_pfcp_node_id_t)));
|
||||
node_id->fqdn[OGS_MAX_FQDN_LEN - 1] = '\0';
|
||||
|
||||
if (node_id->type != OGS_PFCP_NODE_ID_IPV4 &&
|
||||
node_id->type != OGS_PFCP_NODE_ID_IPV6 &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue