forked from Lainports/freebsd-ports
- Bump PORTREVISION PR: ports/126846 Submitted by: Ashish Shukla <wahjava at gmail.com> Approved by: maintainer
15 lines
295 B
C
15 lines
295 B
C
|
|
$FreeBSD$
|
|
|
|
--- lib/connection.c.orig
|
|
+++ lib/connection.c
|
|
@@ -467,7 +467,8 @@
|
|
if (error) {
|
|
network_log(LOG_ERROR, s, "Unable to lookup %s:%s %s",
|
|
cs->host, cs->port, gai_strerror(error));
|
|
- freeaddrinfo(addrinfo);
|
|
+ if(addrinfo)
|
|
+ freeaddrinfo(addrinfo);
|
|
return FALSE;
|
|
}
|
|
|