* nis/ypclnt.c (yp_update): Before trying default authentication,
authorUlrich Drepper <drepper@redhat.com>
Thu, 8 Dec 2005 15:42:25 +0000 (15:42 +0000)
committerUlrich Drepper <drepper@redhat.com>
Thu, 8 Dec 2005 15:42:25 +0000 (15:42 +0000)
free DES descriptor.

ChangeLog
nis/ypclnt.c

index 2c8695d..e7a2187 100644 (file)
--- 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.
index 5fc931c..6609566 100644 (file)
@@ -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;
        }