summaryrefslogtreecommitdiffstats
path: root/lib/libc/rpc/crypt_client.c
diff options
context:
space:
mode:
authorRenato Botelho <renato@netgate.com>2016-12-05 15:53:29 -0200
committerRenato Botelho <renato@netgate.com>2016-12-05 15:53:29 -0200
commit812767d2bb4e201b4f826fd31924d2cafb8fe0ae (patch)
tree3e3dbc65eb273c201d08a9eaf227f857e2a62358 /lib/libc/rpc/crypt_client.c
parentc1d136c87f2377fd07592928003e67490eb479a6 (diff)
parentb0e9d555db88639874b99e5151bf5981a8223322 (diff)
downloadFreeBSD-src-812767d2bb4e201b4f826fd31924d2cafb8fe0ae.zip
FreeBSD-src-812767d2bb4e201b4f826fd31924d2cafb8fe0ae.tar.gz
Merge remote-tracking branch 'origin/stable/10' into devel
Diffstat (limited to 'lib/libc/rpc/crypt_client.c')
-rw-r--r--lib/libc/rpc/crypt_client.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/libc/rpc/crypt_client.c b/lib/libc/rpc/crypt_client.c
index 4e5c793..b7f0d1ff 100644
--- a/lib/libc/rpc/crypt_client.c
+++ b/lib/libc/rpc/crypt_client.c
@@ -43,10 +43,7 @@ __FBSDID("$FreeBSD$");
#include "un-namespace.h"
int
-_des_crypt_call(buf, len, dparms)
- char *buf;
- int len;
- struct desparams *dparms;
+_des_crypt_call(char *buf, int len, struct desparams *dparms)
{
CLIENT *clnt;
desresp *result_1;
@@ -64,6 +61,7 @@ _des_crypt_call(buf, len, dparms)
}
if (nconf == NULL) {
warnx("getnetconfig: %s", nc_sperror());
+ endnetconfig(localhandle);
return(DESERR_HWERROR);
}
clnt = clnt_tp_create(NULL, CRYPT_PROG, CRYPT_VERS, nconf);
OpenPOWER on IntegriCloud