*
* Copyright (C) 1992-2001 Andrew Tridgell <tridge@samba.org>
* Copyright (C) 2001, 2002 Martin Pool <mbp@samba.org>
- * Copyright (C) 2002-2007 Wayne Davison
+ * Copyright (C) 2002-2009 Wayne Davison
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
struct addrinfo hint, *answer;
int err;
+ if (strcmp(addr, "0.0.0.0") == 0)
+ return name_buf;
+
memset(&hint, 0, sizeof hint);
#ifdef AI_NUMERICHOST
if (ai->ai_addrlen < sizeof (struct sockaddr_in6)) {
rprintf(FLOG, "%s: too short sockaddr_in6; length=%d\n",
- fn, ai->ai_addrlen);
+ fn, (int)ai->ai_addrlen);
return 1;
}