Commit fca5c9e3 fca5c9e3f62ade28bffcef684c78d0bbff869667 by Sergey Poznyakoff

Bugfix

* libmailutils/sockaddr/fromnode.c [!MAILUTILS_IPV6] Handle
AF_UNSPEC same way as AF_INET.
Do not bail out if service is not given, assume port = 0 instead.
* mailutils/base/version.c (mu_conf_option): Reflect IPv6 support.
1 parent adca074d
......@@ -37,6 +37,9 @@ static struct mu_conf_option mu_conf_option[] = {
{ "MAILSPOOLDIR=" MU_PATH_MAILDIR, N_("Default mail spool directory") },
{ "SCHEME=" MU_DEFAULT_SCHEME, N_("Default mailbox type") },
{ "LOG_FACILITY=" LOG_FACILITY_STRING, N_("Default syslog facility") },
#ifdef MAILUTILS_IPV6
{ "IPV6", N_("IPv6 support") },
#endif
#ifdef USE_LIBPAM
{ "USE_LIBPAM", N_("PAM support") },
#endif
......
......@@ -162,7 +162,7 @@ mu_sockaddr_from_node (struct mu_sockaddr **retval, const char *node,
freeaddrinfo (res);
}
#else
if (mh->family == AF_INET)
if (mh->family == AF_INET || mh->family == AF_UNSPEC)
{
short port;
struct hostent *hp;
......@@ -200,7 +200,7 @@ mu_sockaddr_from_node (struct mu_sockaddr **retval, const char *node,
else if (mh->port)
port = htons (mh->port);
else
return MU_ERR_NONAME;
port = 0;
if (!node)
{
......