]> git.decadent.org.uk Git - nfs-utils.git/blob - debian/patches/14-allow-address-without-name.patch
rpc.statd: Allow monitoring of addresses without names (Closes: #579397)
[nfs-utils.git] / debian / patches / 14-allow-address-without-name.patch
1 --- nfs-utils-1.2.2.orig/utils/statd/hostname.c
2 +++ nfs-utils-1.2.2/utils/statd/hostname.c
3 @@ -212,7 +212,7 @@
4                                         buf, (socklen_t)sizeof(buf));
5                 freeaddrinfo(ai);
6                 if (!result)
7 -                       return NULL;
8 +                       return strdup(hostname);
9                 return strdup(buf);
10         }
11