Prevent SSIDs >15 in patty_ax25_pton()
This commit is contained in:
parent
02033990a6
commit
78f42b02ea
1 changed files with 4 additions and 0 deletions
|
@ -65,6 +65,10 @@ int patty_ax25_pton(const char *callsign,
|
|||
}
|
||||
}
|
||||
|
||||
if (ssid > 15) {
|
||||
goto error_invalid_callsign;
|
||||
}
|
||||
|
||||
if (c == '-') {
|
||||
goto error_invalid_callsign;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue