diff options
-rw-r--r-- | sunrpc/netname.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sunrpc/netname.c b/sunrpc/netname.c index dd2cb1b..d9d8250 100644 --- a/sunrpc/netname.c +++ b/sunrpc/netname.c @@ -96,7 +96,8 @@ host2netname (char netname[MAXNETNAMELEN + 1], const char *host, else { domainname[0] = 0; - getdomainname (domainname, MAXHOSTNAMELEN); + if (getdomainname (domainname, MAXHOSTNAMELEN)) + return 0; } } else |