[SMF] Gx: Prevent sending Gx messages to non-PCRF Diameter peers (#1468)

This commit is contained in:
Pau Espin 2022-04-06 13:48:26 +02:00 committed by GitHub
parent 110a63fdfa
commit 5be48be634
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -105,6 +105,12 @@ void smf_gx_send_ccr(smf_sess_t *sess, ogs_gtp_xact_t *xact,
/* Create the request */
ret = fd_msg_new(ogs_diam_gx_cmd_ccr, MSGFL_ALLOC_ETEID, &req);
ogs_assert(ret == 0);
{
struct msg_hdr *h;
ret = fd_msg_hdr(req, &h);
ogs_assert(ret == 0);
h->msg_appl = OGS_DIAM_GX_APPLICATION_ID;
}
/* Find Diameter Gx Session */
if (sess->gx_sid) {