SCP had a serioud memory problem and fixed it

This commit is contained in:
Sukchan Lee 2022-10-30 13:35:25 +09:00
parent 243bf9850a
commit cca53fb8e8
2 changed files with 6 additions and 3 deletions

View File

@ -301,8 +301,10 @@ void ogs_sbi_nf_state_registered(ogs_fsm_t *s, ogs_event_t *e)
break;
case OGS_TIMER_NF_INSTANCE_NO_HEARTBEAT:
ogs_error("[%s] No heartbeat",
NF_INSTANCE_ID(ogs_sbi_self()->nf_instance));
ogs_error("[%s:%s] No heartbeat",
NF_INSTANCE_ID(ogs_sbi_self()->nf_instance),
OpenAPI_nf_type_ToString(
NF_INSTANCE_TYPE(ogs_sbi_self()->nf_instance)));
OGS_FSM_TRAN(s, &ogs_sbi_nf_state_will_register);
break;

View File

@ -379,7 +379,7 @@ static int request_handler(ogs_sbi_request_t *request, void *data)
v_start = v_end = NULL;
while (*p++) {
while (*p) {
if (*p == ';') {
if ((v_start && v_end) || !v_start) {
p++;
@ -389,6 +389,7 @@ static int request_handler(ogs_sbi_request_t *request, void *data)
if (!v_start) v_start = p+1;
else if (!v_end) v_end = p;
}
p++;
}
if (v_start && v_end) {