1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-23 04:23:08 +00:00
freebsd-ports/mail/dbmail/files/patch-src_clientbase.c
Muhammad Moinur Rahman 9eff14e488 mail/dbmail: adopt latest fixes from git:
- login_disabled option before starttls for pop3
- fix compiler warnings for GCC5
- Fix IMAP mailbox maintanence
- prevent assertion in p_string_erase
- improve crypt authentication, also don't segfault when spasswd is empty
- simplify log_query_time duration logic
- Disconnect IMAP clients if only few free FDs left
- Add primary key constraint to dbmail_authlog
- Rework temporary connection failures
- Give sensible default for retry 120s
- Add retries for binding and searching
- Bump search timeout to 60s
- Increase ldap timeout to 600s 10 mins
- Refactor deprecated functions
- Get timeout from config
- Remove redundant event_assign
- Remove deprecated non functioning g_mem_profile
- Add definition for authldap_free
- Revert inadvertent event_assign removal
- Reduce failed LDAP connection for search to error
- Update LDAP to non deprecated search
- Clear the ldap connection
- Update ldap deprecated unbind
- Fix typo
- Update to ldap_unbind_ext_s and remove redundant sigaction
- Rebalance commit rollback
- Ensure mailbox2dbmail is using Python 2
- Tidy mailbox2dbmail man page
- Update description of pid file location in server man page
- Boundaries fixups ordering of parts do not add newline on
- Prepend headers during delivery
- Allow for systems that don't use proc

PR:		210274
Submitted by:	fluffy
2017-02-24 21:15:52 +00:00

30 lines
1.3 KiB
C

--- src/clientbase.c.orig 2015-01-25 10:20:50 UTC
+++ src/clientbase.c
@@ -151,7 +151,7 @@ ClientBase_T * client_init(client_sock *
client->tx = STDOUT_FILENO;
} else {
/* server-side */
- if ((serr = getnameinfo(&c->saddr, c->saddr_len, client->dst_ip,
+ if ((serr = getnameinfo(&c->saddr, c->saddr.sa_len, client->dst_ip,
NI_MAXHOST, client->dst_port,
NI_MAXSERV, NI_NUMERICHOST | NI_NUMERICSERV))) {
TRACE(TRACE_INFO, "getnameinfo::error [%s]", gai_strerror(serr));
@@ -159,7 +159,7 @@ ClientBase_T * client_init(client_sock *
/* client-side */
if (server_conf->resolveIP) {
- if ((serr = getnameinfo(&c->caddr, c->caddr_len, client->clientname,
+ if ((serr = getnameinfo(&c->caddr, c->caddr.sa_len, client->clientname,
NI_MAXHOST-1, NULL, 0, NI_NAMEREQD))) {
TRACE(TRACE_INFO, "getnameinfo:error [%s]", gai_strerror(serr));
}
@@ -170,7 +170,7 @@ ClientBase_T * client_init(client_sock *
client->clientname[0] ? client->clientname : "Lookup failed");
} else {
- if ((serr = getnameinfo(&c->caddr, c->caddr_len, client->src_ip,
+ if ((serr = getnameinfo(&c->caddr, c->caddr.sa_len, client->src_ip,
NI_MAXHOST-1, client->src_port,
NI_MAXSERV-1, NI_NUMERICHOST | NI_NUMERICSERV))) {
TRACE(TRACE_INFO, "getnameinfo:error [%s]", gai_strerror(serr));