diff options
author | olgeni <olgeni@FreeBSD.org> | 2005-11-10 15:12:40 +0000 |
---|---|---|
committer | olgeni <olgeni@FreeBSD.org> | 2005-11-10 15:12:40 +0000 |
commit | 99b4fb82c722da67418c7ed430886bc1f90d70ee (patch) | |
tree | 68a00804a4f9e0b46f449fd5d173518a4b0d43e6 | |
parent | 2da9df569a5950a04dfdf284ad4c91ec7a2f245c (diff) | |
download | FreeBSD-ports-99b4fb82c722da67418c7ed430886bc1f90d70ee.zip FreeBSD-ports-99b4fb82c722da67418c7ed430886bc1f90d70ee.tar.gz |
Add bugfix for SSL distribution protocol.
Obtained from: Bjorn Gustavsson <bjorn(at)erix.ericsson.se>
-rw-r--r-- | lang/erlang/Makefile | 1 | ||||
-rw-r--r-- | lang/erlang/files/patch-lib_ssl_src_ssl__prim.erl | 23 | ||||
-rw-r--r-- | lang/erlang14/Makefile | 1 | ||||
-rw-r--r-- | lang/erlang14/files/patch-lib_ssl_src_ssl__prim.erl | 23 |
4 files changed, 48 insertions, 0 deletions
diff --git a/lang/erlang/Makefile b/lang/erlang/Makefile index 4c5dbd3..2390840 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 0000000..94d8323 --- /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 diff --git a/lang/erlang14/Makefile b/lang/erlang14/Makefile index 4c5dbd3..2390840 100644 --- a/lang/erlang14/Makefile +++ b/lang/erlang14/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/erlang14/files/patch-lib_ssl_src_ssl__prim.erl b/lang/erlang14/files/patch-lib_ssl_src_ssl__prim.erl new file mode 100644 index 0000000..94d8323 --- /dev/null +++ b/lang/erlang14/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 |