From 9f2eaf8f56b14a462f0cd92843f11a17b8bfbc71 Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Wed, 13 Apr 2016 19:14:47 +0200 Subject: cosmetic: auth tuple memcpy: rather use target's sizeof() --- openbsc/src/gprs/gprs_gmm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'openbsc/src/gprs/gprs_gmm.c') diff --git a/openbsc/src/gprs/gprs_gmm.c b/openbsc/src/gprs/gprs_gmm.c index aa376d848..51ce22b5b 100644 --- a/openbsc/src/gprs/gprs_gmm.c +++ b/openbsc/src/gprs/gprs_gmm.c @@ -1111,9 +1111,9 @@ static int gsm48_rx_gmm_att_req(struct sgsn_mm_ctx *ctx, struct msgb *msg, ctx->auth_triplet.key_seq = 0; - memcpy(&ctx->auth_triplet.rand, &tmp_rand, sizeof(tmp_rand)); - memcpy(&ctx->auth_triplet.sres, &vec.sres, sizeof(vec.sres)); - memcpy(&ctx->auth_triplet.kc, &vec.kc, sizeof(vec.kc)); + memcpy(&ctx->auth_triplet.rand, &tmp_rand, sizeof(ctx->auth_triplet.rand)); + memcpy(&ctx->auth_triplet.sres, &vec.sres, sizeof(ctx->auth_triplet.sres)); + memcpy(&ctx->auth_triplet.kc, &vec.kc, sizeof(ctx->auth_triplet.kc)); } /* Update MM Context with other data */ -- cgit v1.2.3