[2006] in Kerberos-V5-bugs

home help back first fref pref prev next nref lref last post

k5b6: movemail core dumps due to uninitialized local.

daemon@ATHENA.MIT.EDU (Bill Sommerfeld)
Fri Jun 14 18:01:14 1996

Date: Fri, 14 Jun 1996 18:00:44 -0400
From: Bill Sommerfeld <sommerfeld@apollo.hp.com>
To: krb5-bugs@MIT.EDU
Cc: sommerfeld@apollo.hp.com

movemail reliably dumps core on NetBSD/i386 because the "auth_context"
parameter to krb5_sendauth() is not initialized to NULL.

The enclosed patch appears to fix this problem.

						- Bill


*** movemail.c~	Thu Jan  4 00:35:57 1996
--- movemail.c	Fri Jun 14 17:50:52 1996
***************
*** 535,541 ****
      krb5_context context;
      krb5_principal client, server;
      krb5_error *err_ret = NULL;
!     krb5_auth_context auth_context;
      char *hostname;
  #endif /* KRB5 */
  #endif /* KERBEROS */
--- 535,541 ----
      krb5_context context;
      krb5_principal client, server;
      krb5_error *err_ret = NULL;
!     krb5_auth_context auth_context = NULL;
      char *hostname;
  #endif /* KRB5 */
  #endif /* KERBEROS */

home help back first fref pref prev next nref lref last post