[566] in Kerberos_V5_Development

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

Something to watch for in routines that copy structures around...

tytso@ATHENA.MIT.EDU (tytso@ATHENA.MIT.EDU)
Wed Jan 9 00:39:23 1991

Some of the routines aren't checking to see if a pointer to a
substructure in the source structure is non-NULL before checking it.

For example, after calling krb5_rd_req, authdat->subkey is NULL if no
subkey had been specified by the sender.  However,
krb5_copy_authenticator would core dump because it would try to copy
authdat->subkey without checking to make sure something was there before
trying to copy it.

I've fixed krb5_copy_authenticator, but we probably want to check the
rest of the copy subroutines at some point.

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