diff options
author | James Prestwood <james.prestwood@linux.intel.com> | 2017-11-01 10:32:17 -0700 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2017-11-02 11:37:53 -0500 |
commit | 671fb793fa9e6d26f9d9844b14d8ce11eac06117 (patch) | |
tree | 04a4d686a8e0b8851708b34fb3ce70f448b3a845 /src/simutil.c | |
parent | 5be941c608f57e014ddd5e2e52e2463537229e19 (diff) | |
download | ofono-671fb793fa9e6d26f9d9844b14d8ce11eac06117.tar.gz |
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.
Diffstat (limited to 'src/simutil.c')
-rw-r--r-- | src/simutil.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; } |