[1129] in Kerberos-V5-bugs

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

appl/bsd/kcmd.c - uninitialized variable causes core dump

daemon@ATHENA.MIT.EDU (epeisach@MIT.EDU)
Fri Mar 10 18:22:52 1995

From: epeisach@MIT.EDU
Date: Fri, 10 Mar 1995 18:22:37 -0500
To: krb5-bugs@MIT.EDU


Detected because I tried using v5 rlogin to a v4 rlogind (on pao).

For a full OSF/1 v2.1 working rlogind/etc - the patches I supplied
earlier are still requierd...

The failure is that thet krb5_free_creds is being called on a bogus
pointer. (in the bad section - falling into from bad2). (line 401)

	Ezra

===================================================================
RCS file: /mit/krb5/.cvsroot/src/appl/bsd/kcmd.c,v
retrieving revision 5.21
diff -c -r5.21 kcmd.c
*** 5.21	1995/03/10 17:28:35
--- kcmd.c	1995/03/10 23:16:48
***************
*** 88,94 ****
      long oldmask;
  #endif
      struct sockaddr_in sin, from, local_laddr;
!     krb5_creds *get_cred, *ret_cred;
      char c;
      int lport = START_PORT;
      struct hostent *hp;
--- 88,94 ----
      long oldmask;
  #endif
      struct sockaddr_in sin, from, local_laddr;
!     krb5_creds *get_cred, *ret_cred = 0;
      char c;
      int lport = START_PORT;
      struct hostent *hp;

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