From 671fb793fa9e6d26f9d9844b14d8ce11eac06117 Mon Sep 17 00:00:00 2001 From: James Prestwood Date: Wed, 1 Nov 2017 10:32:17 -0700 Subject: [PATCH] simutil: Made UMTS/GSM authenticate more consitent The Le parameter in the AUTHENTICATE command was not being set for GSM authentication. This did work, but explicitly setting it to 0 as UMTS does was more consitent. --- src/simutil.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/simutil.c b/src/simutil.c index 6e7051ed..d5fc06bf 100644 --- a/src/simutil.c +++ b/src/simutil.c @@ -1628,9 +1628,10 @@ static int build_authenticate(unsigned char *buffer, const unsigned char *rand, buffer[pos++] = 0x10; memcpy(buffer + pos, autn, 16); pos += 16; - buffer[pos++] = 0x00; } + buffer[pos++] = 0x00; + return pos; }