mirror of
https://gitea.osmocom.org/cellular-infrastructure/osmo-mgw.git
synced 2025-10-23 08:12:01 +00:00
gprs: Use imsi field instead of imei
The wrong field has been use for the field length computation. This hadn't any impact so far, since sizeof(ctx->imei) == sizeof(ctx->imsi) This patch fixes the computation to use the right field. Sponsored-by: On-Waves ehf
This commit is contained in:
committed by
Holger Hans Peter Freyther
parent
ff0d65aaf6
commit
fd636aed1e
@@ -614,7 +614,7 @@ static int gsm48_rx_gmm_id_resp(struct sgsn_mm_ctx *ctx, struct msgb *msg)
|
||||
sgsn_mm_ctx_free(ictx);
|
||||
}
|
||||
}
|
||||
strncpy(ctx->imsi, mi_string, sizeof(ctx->imei));
|
||||
strncpy(ctx->imsi, mi_string, sizeof(ctx->imsi));
|
||||
break;
|
||||
case GSM_MI_TYPE_IMEI:
|
||||
strncpy(ctx->imei, mi_string, sizeof(ctx->imei));
|
||||
|
Reference in New Issue
Block a user