diff options
author | Jacob Erlbeck <jerlbeck@sysmocom.de> | 2014-07-08 09:49:07 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2014-07-22 15:51:55 +0200 |
commit | fd636aed1ed266d68c0a8cec4750f068fc911cd2 (patch) | |
tree | 003fc578617e38fc28b8b85ccd98ec76030615e0 /openbsc/src/gprs/gprs_gmm.c | |
parent | ff0d65aaf62f17dd9092d3cd587cccfb716c1016 (diff) |
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
Diffstat (limited to 'openbsc/src/gprs/gprs_gmm.c')
-rw-r--r-- | openbsc/src/gprs/gprs_gmm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/gprs/gprs_gmm.c b/openbsc/src/gprs/gprs_gmm.c index 58c5f047a..fa5e82dca 100644 --- a/openbsc/src/gprs/gprs_gmm.c +++ b/openbsc/src/gprs/gprs_gmm.c @@ -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)); |