X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/f587061a5b2eb2a3043aaee95a5f0cbf6bc6c7ea..9541770faf6cdb2851a39fa5feaa067a6e0d751a:/clientname.c diff --git a/clientname.c b/clientname.c index 63e68950..e5684f8f 100644 --- a/clientname.c +++ b/clientname.c @@ -3,7 +3,7 @@ * * Copyright (C) 1992-2001 Andrew Tridgell * Copyright (C) 2001, 2002 Martin Pool - * 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 @@ -108,6 +108,9 @@ char *client_name(int fd) 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