summaryrefslogtreecommitdiff
path: root/packet.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2006-12-07 05:22:25 +0000
committerEric S. Raymond <esr@thyrsus.com>2006-12-07 05:22:25 +0000
commit70f46efc7d2b2a58588f4e6e1e86b926d0c211ee (patch)
tree7ed8f5a7b9fc6ff3ac26d16788708a31d1e72163 /packet.c
parentb6fc848663d0758cb0e9849eba3e25709d5ba418 (diff)
downloadgpsd-70f46efc7d2b2a58588f4e6e1e86b926d0c211ee.tar.gz
Fix a bug in the processing of comment packets.
Diffstat (limited to 'packet.c')
-rw-r--r--packet.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/packet.c b/packet.c
index a14e16e4..35b7d17d 100644
--- a/packet.c
+++ b/packet.c
@@ -700,6 +700,7 @@ ssize_t packet_parse(struct gps_packet_t *lexer, size_t fix)
else if (lexer->state == COMMENT_RECOGNIZED) {
packet_accept(lexer, COMMENT_PACKET);
packet_discard(lexer);
+ break;
}
#ifdef NMEA_ENABLE
else if (lexer->state == NMEA_RECOGNIZED) {