From 858debdd01a47224fa59514c661ed99c4f4003ce Mon Sep 17 00:00:00 2001 From: Bram Matthys Date: Sat, 5 Oct 2019 07:49:54 +0200 Subject: [PATCH] Protect against duplicate PROTOCTL EAUTH (possible memleak) --- src/modules/protoctl.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/modules/protoctl.c b/src/modules/protoctl.c index 37530cb51..1e202c85f 100644 --- a/src/modules/protoctl.c +++ b/src/modules/protoctl.c @@ -221,6 +221,9 @@ CMD_FUNC(cmd_protoctl) char buf[512]; ConfigItem_link *aconf = NULL; + if (IsEAuth(client)) + return exit_client(client, NULL, "PROTOCTL EAUTH received twice"); + strlcpy(buf, value, sizeof(buf)); p = strchr(buf, ' '); if (p)