Always make fqdn a NULL terminated string

This commit is contained in:
shellwayxw 2025-04-09 11:41:24 -04:00 committed by Sukchan Lee
parent 31d3f575d2
commit 90cb00ced3

View file

@ -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 &&