From c595d66b472f37735c00b5d2f7c7c976726f1656 Mon Sep 17 00:00:00 2001 From: aks Date: Wed, 13 Mar 2024 16:12:56 +0400 Subject: [PATCH] http/server: fix wrong sizeof in verify_msg (#1083) replaced to a correct structure in sizeof fixes #1080 --- src/http/server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/http/server.c b/src/http/server.c index d4c307f15..241c31667 100644 --- a/src/http/server.c +++ b/src/http/server.c @@ -165,7 +165,7 @@ static enum re_https_verify_msg verify_msg(struct http_conn *conn, if (res == HTTPS_MSG_REQUEST_CERT) { - d = mem_zalloc(sizeof(*conn), verify_msg_destructor); + d = mem_zalloc(sizeof(*d), verify_msg_destructor); if (!d) { res = HTTPS_MSG_IGNORE; goto out;