diff options
author | olgeni <olgeni@FreeBSD.org> | 2005-11-10 23:12:40 +0800 |
---|---|---|
committer | olgeni <olgeni@FreeBSD.org> | 2005-11-10 23:12:40 +0800 |
commit | 99b4fb82c722da67418c7ed430886bc1f90d70ee (patch) | |
tree | 68a00804a4f9e0b46f449fd5d173518a4b0d43e6 | |
parent | 2da9df569a5950a04dfdf284ad4c91ec7a2f245c (diff) | |
download | freebsd-ports-gnome-99b4fb82c722da67418c7ed430886bc1f90d70ee.tar.gz freebsd-ports-gnome-99b4fb82c722da67418c7ed430886bc1f90d70ee.tar.zst freebsd-ports-gnome-99b4fb82c722da67418c7ed430886bc1f90d70ee.zip |
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 4c5dbd3c5964..2390840607ca 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 000000000000..94d8323434c0 --- /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 4c5dbd3c5964..2390840607ca 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 000000000000..94d8323434c0 --- /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 |