cgmnlm

Unnamed repository; edit this file 'description' to name the repository.
git clone git://code.clttr.info/cgmnlm.git
Log | Files | Refs | README | LICENSE

commit 59d43726bb18a1e240a7188b3dd33af5876a126e
parent bb696e6e2823d38bf6ad2f5106f3808555c48b18
Author: Drew DeVault <sir@cmpwn.com>
Date:   Sun, 20 Sep 2020 22:20:38 -0400

Fix segfault on name resolution errors

Diffstat:
Msrc/client.c | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/client.c b/src/client.c @@ -59,7 +59,7 @@ gemini_connect(struct Curl_URL *uri, struct gemini_options *options, struct addrinfo *addr; enum gemini_result res = gemini_get_addrinfo(uri, options, resp, &addr); if (res != GEMINI_OK) { - goto cleanup; + return res; } struct addrinfo *rp; @@ -79,7 +79,6 @@ gemini_connect(struct Curl_URL *uri, struct gemini_options *options, return res; } -cleanup: if (!options || !options->addr) { freeaddrinfo(addr); }