commit | 103c11bd24662e124f7f6c539c0d1c606a67167c | [log] [tgz] |
---|---|---|
author | Oliver Smith <osmith@sysmocom.de> | Thu Jun 06 11:57:05 2019 +0200 |
committer | Oliver Smith <osmith@sysmocom.de> | Tue Jun 11 08:43:49 2019 +0200 |
tree | 46f215ede63071e79fee4a7a8965119f80256564 | |
parent | 63de00cfc104a32b5fb6abeeabaa631381c4cb36 [diff] |
rx_check_imei_req(): fix IMEI bounds checking IMEIs (without the checksum) always have 14 digits. Replace the previous check (length <= 14) with a proper one (length == 14) and set the buffer to the right size. While at it, add the return code of gsm48_decode_bc_number2() to the error log message. I have tested with new TTCN3 tests, that the length check is working properly now. Related: OS#2541 Change-Id: I060a8db98fb882e4815d1709a5d85bc0143a73a6