aboutsummaryrefslogtreecommitdiffstats
path: root/lang/erlang
diff options
context:
space:
mode:
authorolgeni <olgeni@FreeBSD.org>2005-11-10 23:12:40 +0800
committerolgeni <olgeni@FreeBSD.org>2005-11-10 23:12:40 +0800
commit99b4fb82c722da67418c7ed430886bc1f90d70ee (patch)
tree68a00804a4f9e0b46f449fd5d173518a4b0d43e6 /lang/erlang
parent2da9df569a5950a04dfdf284ad4c91ec7a2f245c (diff)
downloadfreebsd-ports-graphics-99b4fb82c722da67418c7ed430886bc1f90d70ee.tar.gz
freebsd-ports-graphics-99b4fb82c722da67418c7ed430886bc1f90d70ee.tar.zst
freebsd-ports-graphics-99b4fb82c722da67418c7ed430886bc1f90d70ee.zip
Add bugfix for SSL distribution protocol.
Obtained from: Bjorn Gustavsson <bjorn(at)erix.ericsson.se>
Diffstat (limited to 'lang/erlang')
-rw-r--r--lang/erlang/Makefile1
-rw-r--r--lang/erlang/files/patch-lib_ssl_src_ssl__prim.erl23
2 files changed, 24 insertions, 0 deletions
diff --git a/lang/erlang/Makefile b/lang/erlang/Makefile
index 4c5dbd3c596..2390840607c 100644
--- a/lang/erlang/Makefile
+++ b/lang/erlang/Makefile
@@ -8,6 +8,7 @@
PORTNAME= erlang
PORTVERSION= r10b8
PORTEPOCH= 1
+PORTREVISION= 1
CATEGORIES= lang parallel
MASTER_SITES= http://www.erlang.org/download/ \
ftp://ftp.erlang.org/pub/download/ \
diff --git a/lang/erlang/files/patch-lib_ssl_src_ssl__prim.erl b/lang/erlang/files/patch-lib_ssl_src_ssl__prim.erl
new file mode 100644
index 00000000000..94d8323434c
--- /dev/null
+++ b/lang/erlang/files/patch-lib_ssl_src_ssl__prim.erl
@@ -0,0 +1,23 @@
+
+$FreeBSD$
+
+--- lib/ssl/src/ssl_prim.erl.orig
++++ lib/ssl/src/ssl_prim.erl
+@@ -107,7 +107,7 @@
+ peername(St) when record(St, st), St#st.status =:= open ->
+ case ssl_server:peername_prim(ssl_server_prim, St#st.fd) of
+ {ok, {Address, Port}} ->
+- {ok, At} = inet:getaddr(Address, inet),
++ {ok, At} = inet_parse:ipv4_address(Address),
+ {ok, {At, Port}};
+ Error ->
+ Error
+@@ -119,7 +119,7 @@
+ sockname(St) when record(St, st), St#st.status =:= open ->
+ case ssl_server:sockname_prim(ssl_server_prim, St#st.fd) of
+ {ok, {Address, Port}} ->
+- {ok, At} = inet:getaddr(Address, inet),
++ {ok, At} = inet_parse:ipv4_address(Address),
+ {ok, {At, Port}};
+ Error ->
+ Error