You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
1.6 KiB
48 lines
1.6 KiB
12 years ago
|
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
|
||
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
|
||
|
#
|
||
|
# Filename: package/.../musl/pkg_patch/dovecot/dovecot-musl-netdb-NO_ADDRESS.patch
|
||
|
# Copyright (C) 2012 The OpenSDE Project
|
||
|
#
|
||
|
# More information can be found in the files COPYING and README.
|
||
|
#
|
||
|
# This patch file is dual-licensed. It is available under the license the
|
||
|
# patched project is licensed under, as long as it is an OpenSource license
|
||
|
# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
|
||
|
# of the GNU General Public License as published by the Free Software
|
||
|
# Foundation; either version 2 of the License, or (at your option) any later
|
||
|
# version.
|
||
|
# --- SDE-COPYRIGHT-NOTE-END ---
|
||
|
|
||
|
--- a/src/dns/dns-client.c 2012-11-30 16:45:15.043810659 +0100
|
||
|
+++ b/src/dns/dns-client.c 2012-11-30 16:54:23.460494952 +0100
|
||
|
@@ -36,7 +36,7 @@
|
||
|
ret = net_gethostbyname(line + 3, &ips, &ips_count);
|
||
|
if (ret == 0 && ips_count == 0) {
|
||
|
/* shouldn't happen, but fix it anyway.. */
|
||
|
- ret = NO_ADDRESS;
|
||
|
+ ret = NO_DATA;
|
||
|
}
|
||
|
if (ret != 0) {
|
||
|
o_stream_send_str(client->output,
|
||
|
--- a/src/lib/network.c 2012-11-30 16:55:33.654106822 +0100
|
||
|
+++ b/src/lib/network.c 2012-11-30 16:54:49.413097220 +0100
|
||
|
@@ -835,7 +835,7 @@
|
||
|
switch (error) {
|
||
|
case HOST_NOT_FOUND:
|
||
|
return "Host not found";
|
||
|
- case NO_ADDRESS:
|
||
|
+ case NO_DATA:
|
||
|
return "No IP address found for name";
|
||
|
case NO_RECOVERY:
|
||
|
return "A non-recoverable name server error occurred";
|
||
|
@@ -857,7 +857,7 @@
|
||
|
return error != 1 && (error == EAI_NONAME);
|
||
|
#endif
|
||
|
#else
|
||
|
- return error == HOST_NOT_FOUND || error == NO_ADDRESS;
|
||
|
+ return error == HOST_NOT_FOUND || error == NO_DATA;
|
||
|
#endif
|
||
|
}
|
||
|
|