[2487] in Kerberos_V5_Development
kdc/kdc_util.c: add_to_transited()
daemon@ATHENA.MIT.EDU (Ken Hornstein)
Thu Aug 14 00:38:39 1997
To: krbdev@MIT.EDU
Date: Thu, 14 Aug 1997 00:38:07 -0400
From: Ken Hornstein <kenh@cmf.nrl.navy.mil>
You know ... it sure seems like this function has plenty of problems:
Every time this function is called, memory is allocated for *realm (for
no good reason, though) and is never free'd.
Memory is malloc'd for the new transitive realm, but it never gets
reset. Whatever garbage is leftover in that buffer ends up getting
used as a string (which would explain my problem).
It almost seems like in this code that the old transitive realm
information is supposed to be copied into the new transitive realm
data, but that never happens either.
The only reason I bring this up is that I can't imagine this code
ever worked for _anyone_ (well .... actually, _if_ your system had
a malloc() which zero'd out memory after it got allocated, _and_
you only had one entry in the transitive realm information, _then_
I think it would work). Am I wrong? Are tons of people using this
code happily, and I'm the only one who can't get transitive cross-realm
working?
--Ken