diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 2022-06-12 17:05:20 +0000 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 2022-06-12 17:05:20 +0000 |
commit | 409ae09bd0a4ca5e01f1482a6f1148c581586125 (patch) | |
tree | f326779527bc045232f526606ab179485a16a0fa /WWW/Library/Implementation | |
parent | 4a784a7f73d7e06d92fcd4b8844dc0ef00f41050 (diff) | |
download | lynx-snapshots-409ae09bd0a4ca5e01f1482a6f1148c581586125.tar.gz |
snapshot of project "lynx", label v2-9-0dev_10g
Diffstat (limited to 'WWW/Library/Implementation')
-rw-r--r-- | WWW/Library/Implementation/HTTCP.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/WWW/Library/Implementation/HTTCP.c b/WWW/Library/Implementation/HTTCP.c index 29529c7e..a3bfda62 100644 --- a/WWW/Library/Implementation/HTTCP.c +++ b/WWW/Library/Implementation/HTTCP.c @@ -1,5 +1,5 @@ /* - * $LynxId: HTTCP.c,v 1.162 2022/03/12 16:45:47 tom Exp $ + * $LynxId: HTTCP.c,v 1.163 2022/04/01 23:18:35 Rajeev.V.Pillai Exp $ * * Generic Communication Code HTTCP.c * ========================== @@ -1583,7 +1583,7 @@ static void really_getaddrinfo(const char *host, hints.ai_family = PF_UNSPEC; hints.ai_socktype = SOCK_STREAM; error = getaddrinfo(host, port, &hints, &res); - if (error || !res) { + if (error) { CTRACE((tfp, "HTGetAddrInfo: getaddrinfo(%s, %s): %s\n", host, port, gai_strerror(error))); } else { @@ -1606,8 +1606,8 @@ static void really_getaddrinfo(const char *host, } else { statuses->h_length = (int) (((LYNX_ADDRINFO *) (*result))->ai_addrlen); } + freeaddrinfo(res); } - freeaddrinfo(res); } #endif /* NSL_FORK */ |