diff --git a/lib/pfcp/context.c b/lib/pfcp/context.c index 3a44ff35a..cdd0d3511 100644 --- a/lib/pfcp/context.c +++ b/lib/pfcp/context.c @@ -748,6 +748,9 @@ int ogs_pfcp_context_parse_config(const char *local, const char *remote) const char *high[OGS_MAX_NUM_OF_SUBNET_RANGE]; int i, num = 0; + memset(low, 0, sizeof(low)); + memset(high, 0, sizeof(high)); + if (ogs_yaml_iter_type(&subnet_array) == YAML_MAPPING_NODE) { memcpy(&subnet_iter, &subnet_array,