summaryrefslogtreecommitdiff
path: root/RHP.c
diff options
context:
space:
mode:
authorDave Hibberd <hibby@debian.org>2026-01-07 21:45:15 +0000
committerDave Hibberd <hibby@debian.org>2026-01-07 21:45:15 +0000
commitdae2bbc7215a8361e7b9092e6c307491c7e5722a (patch)
tree037e9a631be5b69c6869bfaad3e164f2a8b135d2 /RHP.c
parent559d5bbf7c0f401c1def858a9695b43b56a993ec (diff)
New upstream version 6.0.25.15+repackupstream/6.0.25.15+repack
Diffstat (limited to 'RHP.c')
-rw-r--r--RHP.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/RHP.c b/RHP.c
index a82b091..8faacb6 100644
--- a/RHP.c
+++ b/RHP.c
@@ -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)
{
{