summaryrefslogtreecommitdiffstats
path: root/lib/libc/rpc/pmap_getmaps.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/rpc/pmap_getmaps.c')
-rw-r--r--lib/libc/rpc/pmap_getmaps.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libc/rpc/pmap_getmaps.c b/lib/libc/rpc/pmap_getmaps.c
index fa570519af0..ad14eb36656 100644
--- a/lib/libc/rpc/pmap_getmaps.c
+++ b/lib/libc/rpc/pmap_getmaps.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pmap_getmaps.c,v 1.12 2014/11/11 04:51:49 guenther Exp $ */
+/* $OpenBSD: pmap_getmaps.c,v 1.13 2015/09/02 06:47:19 deraadt Exp $ */
/*
* Copyright (c) 2010, Oracle America, Inc.
@@ -70,7 +70,8 @@ pmap_getmaps(struct sockaddr_in *address)
if (client != NULL) {
if (CLNT_CALL(client, PMAPPROC_DUMP, xdr_void, NULL, xdr_pmaplist,
&head, minutetimeout) != RPC_SUCCESS) {
- clnt_perror(client, "pmap_getmaps rpc problem");
+ CLNT_DESTROY(client);
+ return (NULL);
}
CLNT_DESTROY(client);
}