From 5be48be634eaad06ba1300a7b6e25faa4d9f7b57 Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Wed, 6 Apr 2022 13:48:26 +0200 Subject: [PATCH] [SMF] Gx: Prevent sending Gx messages to non-PCRF Diameter peers (#1468) --- src/smf/gx-path.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/smf/gx-path.c b/src/smf/gx-path.c index 4b94d08f2..523c3ad81 100644 --- a/src/smf/gx-path.c +++ b/src/smf/gx-path.c @@ -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) {