Prevent SSIDs >15 in patty_ax25_pton()

This commit is contained in:
XANTRONIX Development 2020-09-20 00:52:24 -05:00 committed by XANTRONIX Industrial
parent 02033990a6
commit 78f42b02ea

View file

@ -65,6 +65,10 @@ int patty_ax25_pton(const char *callsign,
}
}
if (ssid > 15) {
goto error_invalid_callsign;
}
if (c == '-') {
goto error_invalid_callsign;
}