From 572f6f9b39649e0a1be4b6bf363dca314ccf96a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20R=C3=BChsen?= Date: Thu, 13 Feb 2020 15:34:13 +0100 Subject: [PATCH] * src/http.c (gethttp): Remove use of alloca --- src/http.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/http.c b/src/http.c index f85b59b3..d0667284 100644 --- a/src/http.c +++ b/src/http.c @@ -3191,7 +3191,7 @@ gethttp (const struct url *u, struct url *original_url, struct http_stat *hs, FILE *warc_tmp = NULL; char warc_timestamp_str [21]; char warc_request_uuid [48]; - ip_address *warc_ip = NULL; + ip_address warc_ip_buf, *warc_ip = NULL; off_t warc_payload_offset = -1; /* Whether this connection will be kept alive after the HTTP request @@ -3309,7 +3309,7 @@ gethttp (const struct url *u, struct url *original_url, struct http_stat *hs, if (! proxy) { - warc_ip = (ip_address *) alloca (sizeof (ip_address)); + warc_ip = &warc_ip_buf; socket_ip_address (sock, warc_ip, ENDPOINT_PEER); } }