aboutsummaryrefslogtreecommitdiffstats
path: root/src/nmt
diff options
context:
space:
mode:
authorAndreas Eversberg <jolly@eversberg.eu>2017-10-07 18:09:06 +0200
committerAndreas Eversberg <jolly@eversberg.eu>2017-10-22 19:23:03 +0200
commit3218d1a8e0059157346aced9bdc4da47a1d66ff1 (patch)
tree83248578197b078801084c475d1fbc444ade5968 /src/nmt
parent975e34211b87dc166f06cee7c11e9b5cc09b4e91 (diff)
NMT: Fixed segfault when decoding certain (invalid) messages
Diffstat (limited to 'src/nmt')
-rw-r--r--src/nmt/frame.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nmt/frame.c b/src/nmt/frame.c
index 08c6a78..e25698a 100644
--- a/src/nmt/frame.c
+++ b/src/nmt/frame.c
@@ -677,7 +677,7 @@ enum nmt_mt decode_frame_mt(const uint8_t *digits, enum nmt_direction direction,
return NMT_MESSAGE_14a;
if (digits[11] == 15)
return NMT_MESSAGE_14b;
- return -1;
+ break;
case 8:
if (digits[11] == 2)
return NMT_MESSAGE_13b;