about summary refs log tree commit diff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2005-12-08 15:42:25 +0000
committerUlrich Drepper <drepper@redhat.com>2005-12-08 15:42:25 +0000
commite975f14ee90a2ddb80afd9517670d61a80c00a02 (patch)
treea82344d82a37a1351c8d7a24c7bdb34132a8142b
parent07683f843da03675c1ddcd4810c72a9264f113dd (diff)
downloadglibc-e975f14ee90a2ddb80afd9517670d61a80c00a02.tar.gz
glibc-e975f14ee90a2ddb80afd9517670d61a80c00a02.tar.xz
glibc-e975f14ee90a2ddb80afd9517670d61a80c00a02.zip
* nis/ypclnt.c (yp_update): Before trying default authentication,
	free DES descriptor.
-rw-r--r--ChangeLog5
-rw-r--r--nis/ypclnt.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 2c8695d19f..e7a2187843 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-12-08  Jakub Jelinek  <jakub@redhat.com>
+
+	* nis/ypclnt.c (yp_update): Before trying default authentication,
+	free DES descriptor.
+
 2005-12-07  Jakub Jelinek  <jakub@redhat.com>
 
 	* nis/nis_table.c (nis_list): Fix memory handling in error case.
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;
 	}