about summary refs log tree commit diff
path: root/nis
diff options
context:
space:
mode:
Diffstat (limited to 'nis')
-rw-r--r--nis/ypclnt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/nis/ypclnt.c b/nis/ypclnt.c
index 5fc931c459..66095667c6 100644
--- a/nis/ypclnt.c
+++ b/nis/ypclnt.c
@@ -1004,6 +1004,7 @@ again:
     {
       if (clnt->cl_auth->ah_cred.oa_flavor == AUTH_DES)
 	{
+	  auth_destroy (clnt->cl_auth);
 	  clnt->cl_auth = authunix_create_default ();
 	  goto again;
 	}