summaryrefslogtreecommitdiff
path: root/packet.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2013-09-22 14:18:40 -0400
committerEric S. Raymond <esr@thyrsus.com>2013-09-22 14:18:40 -0400
commitb382e653a5af4c6b5b32c42b9d80e8830135f14f (patch)
treed8f0bbae8aaba82f9394061148d77f77a418850c /packet.c
parent02eaa22e3f26ab572c699b73ce585555b420ddfe (diff)
downloadgpsd-b382e653a5af4c6b5b32c42b9d80e8830135f14f.tar.gz
TSIP driver can only use one length of 0x5c packet.
All regression tests pass.
Diffstat (limited to 'packet.c')
-rw-r--r--packet.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/packet.c b/packet.c
index 03a8be71..b0b0968d 100644
--- a/packet.c
+++ b/packet.c
@@ -1717,8 +1717,7 @@ void packet_parse(struct gps_packet_t *lexer)
/* pass */ ;
else if (TSIP_ID_AND_LENGTH(0x5b, 16))
/* pass */ ;
- else if ((0x5c == pkt_id)
- && ((0x1c <= packetlen) && (0x1e >= packetlen)))
+ else if (TSIP_ID_AND_LENGTH(0x5c, 24))
/* pass */ ;
else if (TSIP_ID_AND_LENGTH(0x5e, 2))
/* pass */ ;