1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-29 05:38:00 +00:00

Do not disable IPv6, with that patch it appears to work.

Submitted by:	Jolan Luff <jolan@mezzanine.servebeer.com>
Tested by:	Matthias Andree <matthias.andree@gmx.de>
Obtained from:	NetBSD
This commit is contained in:
Dmitry Sivachenko 2003-08-29 13:49:14 +00:00
parent 5f88459793
commit 255c117370
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=87981
3 changed files with 21 additions and 11 deletions

View File

@ -7,7 +7,7 @@
PORTNAME= mini_sendmail
PORTVERSION= 1.3.2
PORTREVISION= 1
PORTREVISION= 2
CATEGORIES+= mail
MASTER_SITES= http://www.acme.com/software/mini_sendmail/

View File

@ -1,10 +0,0 @@
--- mini_sendmail.c.orig Fri Aug 29 11:02:43 2003
+++ mini_sendmail.c Fri Aug 29 11:03:03 2003
@@ -541,6 +541,7 @@ add_recipient( char* recipient, int len
#if defined(AF_INET6) && defined(IN6_IS_ADDR_V4MAPPED)
#define USE_IPV6
#endif
+#undef USE_IPV6
static int
open_client_socket( void )

View File

@ -0,0 +1,20 @@
--- mini_sendmail.c.orig Thu Nov 21 23:27:55 2002
+++ mini_sendmail.c Fri Aug 29 17:45:40 2003
@@ -575,14 +575,15 @@ open_client_socket( void )
sock_family = PF_INET6;
#ifdef DO_MINUS_S
- if ( inet_pton( PF_INET, server, (void*) &sa4.sin_addr ) == 0 )
+ (void) memset( (void*) &sa4, 0, sizeof(sa4) );
+ if ( inet_pton( AF_INET, server, (void*) &sa4.sin_addr ) == 1 )
{
sock_family = PF_INET;
sa4.sin_port = htons( SMTP_PORT );
sa_len = sizeof(sa4);
(void) memmove( &sa, &sa4, sa_len );
}
- else if ( inet_pton( PF_INET6, server, (void*) &sa.sin6_addr ) == -1 )
+ else if ( inet_pton( AF_INET6, server, (void*) &sa.sin6_addr ) != 1 )
{
#ifdef DO_DNS
(void) memset( &hints, 0, sizeof(hints) );