Not to delete transaction for GTP retry [#342]

This commit is contained in:
Sukchan Lee 2020-01-07 20:01:36 +09:00
parent 3975f6e775
commit f3dd605c67
1 changed files with 4 additions and 2 deletions

View File

@ -110,7 +110,7 @@ ogs_gtp_xact_t *ogs_gtp_xact_local_create(ogs_gtp_node_t *gnode,
rv = ogs_gtp_xact_update_tx(xact, hdesc, pkbuf);
if (rv != OGS_OK) {
ogs_error("ogs_gtp_xact_update_tx() failed");
ogs_error("ogs_gtp_xact_update_tx(rv=%d) failed", (int)rv);
ogs_gtp_xact_delete(xact);
return NULL;
}
@ -652,10 +652,12 @@ int ogs_gtp_xact_receive(
OGS_PORT(&gnode->remote_addr));
rv = ogs_gtp_xact_update_rx(new, h->type);
if (rv != OGS_OK) {
if (rv == OGS_ERROR) {
ogs_error("ogs_gtp_xact_update_rx() failed");
ogs_gtp_xact_delete(new);
return rv;
} else if (rv == OGS_RETRY) {
return rv;
}
*xact = new;