Diff between 57b7dea29b23535e196c76b5d5ba2d67d6d04fdb and ab14539c27b6e369e868c9b2227fd92d35511540

Changed Files

File Additions Deletions Status
monitor/packet.c +1 -1 modified

Full Patch

diff --git a/monitor/packet.c b/monitor/packet.c
index 6932f59..2b58a47 100644
--- a/monitor/packet.c
+++ b/monitor/packet.c
@@ -310,7 +310,7 @@ static void print_packet(struct timeval *tv, struct ucred *cred, char ident,
 			ts_pos += n;
 			ts_len += n;
 		}
-	} else if (index != HCI_DEV_NONE &&
+	} else if (index != HCI_DEV_NONE && index < MAX_INDEX &&
 				index_list[index].frame != last_frame) {
 		if (use_color()) {
 			n = sprintf(ts_str + ts_pos, "%s", COLOR_FRAME_LABEL);