svn commit: r288217 - head/lib/libfetch
Michael Gmelin
grembo at FreeBSD.org
Fri Sep 25 14:24:24 UTC 2015
Author: grembo (ports committer)
Date: Fri Sep 25 14:24:23 2015
New Revision: 288217
URL: https://svnweb.freebsd.org/changeset/base/288217
Log:
Fix non-POSIX-compliant use of getaddrinfo in libfetch
Submitted by: Boris Kolpackov <boris at codesynthesis.com>
Reviewed by: bapt
Approved by: bapt
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D3724
Modified:
head/lib/libfetch/common.c
Modified: head/lib/libfetch/common.c
==============================================================================
--- head/lib/libfetch/common.c Fri Sep 25 13:03:57 2015 (r288216)
+++ head/lib/libfetch/common.c Fri Sep 25 14:24:23 2015 (r288217)
@@ -495,7 +495,8 @@ fetch_ssl_get_numeric_addrinfo(const cha
hints.ai_protocol = 0;
hints.ai_flags = AI_NUMERICHOST;
/* port is not relevant for this purpose */
- getaddrinfo(host, "443", &hints, &res);
+ if (getaddrinfo(host, "443", &hints, &res) != 0)
+ res = NULL;
free(host);
return res;
}
More information about the svn-src-all
mailing list