summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Dickson <steved@redhat.com>2019-11-05 11:02:21 -0500
committerSteve Dickson <steved@redhat.com>2019-11-11 09:34:57 -0500
commit8d6389fb701cd6b12b9bf0a0359ee2cad2a478ac (patch)
tree3c648a10deef6889ee2fd25aed8884d0c1406eee
parente915f698cc534aceb774312f9aa2a42b5f457985 (diff)
downloadrpcbind-8d6389fb701cd6b12b9bf0a0359ee2cad2a478ac.tar.gz
Remove BAD_FREE from reply_proc()rpcbind-1_2_6-rc1
Signed-off-by: Steve Dickson <steved@redhat.com>
-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);
}