[svn] More specific error message in resolve_bind_address.

This commit is contained in:
hniksic 2003-11-05 06:42:42 -08:00
parent 727e91a291
commit 5355da917f
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2003-11-05 Hrvoje Niksic <hniksic@xemacs.org>
* connect.c (resolve_bind_address): Use a more accurate error
message -- we're not binding to ANY, we're disabling bind
altogether.
2003-11-05 Hrvoje Niksic <hniksic@xemacs.org>
* cookies.c (save_cookies_mapper): Respect the setting of

View File

@ -175,9 +175,10 @@ resolve_bind_address (const char *host, struct sockaddr *sa, int flags)
al = lookup_host (host, flags | LH_SILENT | LH_PASSIVE);
if (al == NULL)
{
/* #### We should print the error message here. */
logprintf (LOG_NOTQUIET,
_("Unable to convert `%s' to a bind address. Reverting to ANY.\n"),
opt.bind_address);
_("%s: unable to resolve bind address `%s'; disabling bind.\n"),
exec_name, opt.bind_address);
return 0;
}