1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-20 20:09:11 +00:00

- Fix segfaulting if unable to resolve hostname

- Bump PORTREVISION

PR:		ports/126846
Submitted by:	Ashish Shukla <wahjava at gmail.com>
Approved by:	maintainer
This commit is contained in:
Chin-San Huang 2008-09-02 00:08:45 +00:00
parent d7fe1a619d
commit 3564c26212
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=219623
2 changed files with 16 additions and 0 deletions

View File

@ -8,6 +8,7 @@
PORTNAME= ctrlproxy
PORTVERSION= 3.0.7
PORTREVISION= 1
CATEGORIES= irc
MASTER_SITES= http://www.ctrlproxy.org/releases/ \
LOCAL/chinsan/ctrlproxy/

View File

@ -0,0 +1,15 @@
$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;
}