From 86fad1045193837717cb46380a2678ab1e6d96d6 Mon Sep 17 00:00:00 2001 From: Michael Gernoth Date: Fri, 3 Jun 2016 20:22:53 +0200 Subject: [PATCH 1/1] hmsniff: fix length-byte from HM-MOD-UART --- hmsniff.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hmsniff.c b/hmsniff.c index 638ae1d..c35b29d 100644 --- a/hmsniff.c +++ b/hmsniff.c @@ -231,6 +231,7 @@ static int parse_hmuartlgw(enum hmuartlgw_dst dst, uint8_t *buf, int buf_len, vo switch(buf[0]) { case HMUARTLGW_APP_RECV: + buf[3] = buf_len - 4; dissect_hm(buf + 3, buf_len - 3); case HMUARTLGW_APP_ACK: break; -- 2.39.5