[SGSN] Send poper SM and GMM STATUS in case we have no MM CTX

This commit is contained in:
Harald Welte 2010-07-02 16:18:18 +02:00
parent ab4094ca6b
commit 18d1452a92
1 changed files with 2 additions and 1 deletions

View File

@ -1245,7 +1245,8 @@ static int gsm0408_rcv_gsm(struct sgsn_mm_ctx *mmctx, struct msgb *msg,
if (!mmctx) {
LOGP(DMM, LOGL_NOTICE, "Cannot handle SM for unknown MM CTX\n");
return gsm48_tx_gmm_status_oldmsg(msg, GSM_CAUSE_PROTO_ERR_UNSPEC);
gsm48_tx_gmm_status_oldmsg(msg, GMM_CAUSE_IMPL_DETACHED);
return gsm48_tx_sm_status_oldmsg(msg, GSM_CAUSE_PROTO_ERR_UNSPEC);
}
switch (gh->msg_type) {