Skip to content

Commit

Permalink
http/server: fix wrong sizeof in verify_msg (#1083)
Browse files Browse the repository at this point in the history
replaced to a correct structure in sizeof

fixes #1080
  • Loading branch information
akscf authored Mar 13, 2024
1 parent 45611b9 commit c595d66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/http/server.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c595d66

Please sign in to comment.