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:
parent
d7fe1a619d
commit
3564c26212
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=219623
@ -8,6 +8,7 @@
|
||||
|
||||
PORTNAME= ctrlproxy
|
||||
PORTVERSION= 3.0.7
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= irc
|
||||
MASTER_SITES= http://www.ctrlproxy.org/releases/ \
|
||||
LOCAL/chinsan/ctrlproxy/
|
||||
|
15
irc/ctrlproxy/files/patch-lib_connection.c
Normal file
15
irc/ctrlproxy/files/patch-lib_connection.c
Normal 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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user