Lines 1-5
Link Here
|
1 |
http://rt.openssl.org/Ticket/Display.html?id=2051 |
1 |
http://rt.openssl.org/Ticket/Display.html?id=2051&user=guest&pass=guest |
2 |
user/pass: guest/guest |
|
|
3 |
|
2 |
|
4 |
Forward ported from openssl-1.0.1e-ipv6.patch |
3 |
Forward ported from openssl-1.0.1e-ipv6.patch |
5 |
|
4 |
|
Lines 641-675
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
Link Here
|
641 |
if (ret == NULL) return(NULL); |
640 |
if (ret == NULL) return(NULL); |
642 |
/* else add to cache */ |
641 |
/* else add to cache */ |
643 |
if(strlen(name) < sizeof ghbn_cache[0].name) |
642 |
if(strlen(name) < sizeof ghbn_cache[0].name) |
644 |
--- openssl-1.0.1h/apps/s_socket.c.rej |
|
|
645 |
+++ openssl-1.0.1h/apps/s_socket.c.rej |
646 |
@@ -0,0 +1,29 @@ |
647 |
+--- apps/s_socket.c 2 Dec 2011 14:39:40 -0000 1.43.2.3.2.2 |
648 |
++++ apps/s_socket.c 28 Dec 2011 00:28:14 -0000 |
649 |
+@@ -546,15 +646,23 @@ |
650 |
+ } |
651 |
+ BUF_strlcpy(*host,h1->h_name,strlen(h1->h_name)+1); |
652 |
+ |
653 |
+- h2=GetHostByName(*host); |
654 |
++#if OPENSSL_USE_IPV6 |
655 |
++ h2=GetHostByName(*host, from.ss_family); |
656 |
++#else |
657 |
++ h2=GetHostByName(*host, from.sin_family); |
658 |
++#endif |
659 |
+ if (h2 == NULL) |
660 |
+ { |
661 |
+ BIO_printf(bio_err,"gethostbyname failure\n"); |
662 |
+ return(0); |
663 |
+ } |
664 |
+- if (h2->h_addrtype != AF_INET) |
665 |
++#if OPENSSL_USE_IPV6 |
666 |
++ if (h2->h_addrtype != from.ss_family) |
667 |
++#else |
668 |
++ if (h2->h_addrtype != from.sin_family) |
669 |
++#endif |
670 |
+ { |
671 |
+- BIO_printf(bio_err,"gethostbyname addr is not AF_INET\n"); |
672 |
++ BIO_printf(bio_err,"gethostbyname addr address is not correct\n"); |
673 |
+ return(0); |
674 |
+ } |
675 |
+ } |
676 |
- |