Displaying 2 results from an estimated 2 matches for "net_gethosterror".
Did you mean:
net_get_hosterro
2013 Nov 24
0
dovecot patch: do scanf correctly
...if (sscanf(line, "%d %u", &result->ret,
- &result->ips_count) == 0)
+ &result->ips_count) != 2)
return -1;
if (result->ret != 0) {
result->error = net_gethosterror(result->ret);
diff -r 8a3d0426f514 src/lib-settings/settings.c
--- a/src/lib-settings/settings.c Sat Nov 23 23:22:09 2013 +0000
+++ b/src/lib-settings/settings.c Sun Nov 24 06:30:12 2013 +0100
@@ -44,7 +44,7 @@
{
int num;
- if (!sscanf(value, "%i", &num...
2019 Jan 04
1
Feature request: client bind address for replication
...ip);
+ } else {
+ i_info("Using doveadm_local_ip setting: %s",my_ip);
+ use_my_ip = 1;
+ }
alarm(DOVEADM_TCP_CONNECT_TIMEOUT_SECS);
ret = net_gethostbyname(host, &ips, &ips_count);
if (ret != 0) {
i_fatal("Lookup of host %s failed: %s",
host, net_gethosterror(ret));
}
- fd = net_connect_ip_blocking(&ips[0], port, NULL);
+ fd = net_connect_ip_blocking(&ips[0], port, use_my_ip ? &my_net_ip : NULL);
if (fd == -1) {
i_fatal("connect(%s:%u) failed: %m",
net_ip2addr(&ips[0]), port);
@@ -121,7 +131,7 @@
return fd;
}
-i...