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:
parent
5f88459793
commit
255c117370
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=87981
@ -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/
|
||||
|
||||
|
@ -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 )
|
20
mail/mini_sendmail/files/patch-mini_sendmail.c
Normal file
20
mail/mini_sendmail/files/patch-mini_sendmail.c
Normal 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) );
|
Loading…
Reference in New Issue
Block a user