Fix regression decoding control bytes

This commit is contained in:
XANTRONIX Development 2020-06-28 22:40:56 -04:00 committed by XANTRONIX Industrial
parent cc21e6342b
commit e30f4bfb07

View file

@ -132,7 +132,7 @@ static ssize_t decode_info(patty_ax25_frame *frame,
if (PATTY_AX25_CONTROL_UNNUMBERED_INFO(control)) { if (PATTY_AX25_CONTROL_UNNUMBERED_INFO(control)) {
info = 1; info = 1;
} }
} else { } else if (!PATTY_AX25_CONTROL_SUPER(control)) {
errno = EINVAL; errno = EINVAL;
goto error; goto error;