Skip to content

Commit

Permalink
Initialize is_fisb for non-FIS-B frames (e.g. ADS-R status heartbeats…
Browse files Browse the repository at this point in the history
…) properly.
  • Loading branch information
mutability committed Feb 17, 2015
1 parent 584bb49 commit 8a6516b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion uat_decode.c
Original file line number Diff line number Diff line change
Expand Up @@ -494,8 +494,10 @@ void uat_display_adsb_mdb(const struct uat_adsb_mdb *mdb, FILE *to)

static void uat_decode_info_frame(struct uat_uplink_info_frame *frame)
{
if (frame->type != 0)
if (frame->type != 0) {
frame->is_fisb = 0;
return;
}

if (frame->length < 4) // too short
return;
Expand Down

0 comments on commit 8a6516b

Please sign in to comment.