[SMF] Gx: Prevent sending Gx messages to non-PCRF Diameter peers (#1468)
This commit is contained in:
parent
110a63fdfa
commit
5be48be634
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue