diff options
| author | Dave Hibberd <hibby@debian.org> | 2026-01-07 21:45:15 +0000 |
|---|---|---|
| committer | Dave Hibberd <hibby@debian.org> | 2026-01-07 21:45:15 +0000 |
| commit | dae2bbc7215a8361e7b9092e6c307491c7e5722a (patch) | |
| tree | 037e9a631be5b69c6869bfaad3e164f2a8b135d2 /RHP.c | |
| parent | 559d5bbf7c0f401c1def858a9695b43b56a993ec (diff) | |
New upstream version 6.0.25.15+repackupstream/6.0.25.15+repack
Diffstat (limited to 'RHP.c')
| -rw-r--r-- | RHP.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -387,6 +387,12 @@ int processRHCPOpen(struct ConnectionInfo * sockptr, SOCKET Socket, char * Msg, if (_stricmp(pfam, "ax25") != 0)
return sprintf(ReplyBuffer, "{\"type\": \"openReply\", \"id\": %d, \"handle\": %d, \"errCode\": 12, \"errText\": \"Bad parameter\"}", ID, 0);
+ if (strlen(Local) > 10)
+ return sprintf(ReplyBuffer, "{\"type\": \"openReply\", \"id\": %d, \"handle\": %d, \"errCode\": 6, \"errText\": \"%s\"}", ID, 0, ErrCodes[6]);
+
+ if (strlen(Remote) > 10)
+ return sprintf(ReplyBuffer, "{\"type\": \"openReply\", \"id\": %d, \"handle\": %d, \"errCode\": 7, \"errText\": \"%s\"}", ID, 0, ErrCodes[7]);
+
if (_stricmp(Mode, "stream") == 0)
{
{
|
