summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/rpcinfo.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/rpcinfo.c b/src/rpcinfo.c
index cfdba88..0e14f78 100644
--- a/src/rpcinfo.c
+++ b/src/rpcinfo.c
@@ -693,11 +693,11 @@ reply_proc (res, who, nconf)
}
if (!(uaddr = taddr2uaddr (nconf, who)))
{
- uaddr = UNKNOWN;
+ printf ("%s\t%s\n", UNKNOWN, hostname);
+ } else {
+ printf ("%s\t%s\n", uaddr, hostname);
+ free ((char *) uaddr);
}
- printf ("%s\t%s\n", uaddr, hostname);
- if (strcmp (uaddr, UNKNOWN))
- free ((char *) uaddr);
return (FALSE);
}