[7] in pc-kerberos
typo in winkrb/getphost.c
daemon@ATHENA.MIT.EDU (pbh@MIT.EDU)
Thu Apr 28 01:43:42 1994
To: pc-kerberos@MIT.EDU
Date: Thu, 28 Apr 94 01:41:59
From: pbh@MIT.EDU
I don't know how this one didn't get found sooner. I just got moved to a
POP server with a longer name. The alignment shifted just enough to expose
this.
Around line 60 of getphost.c change
= (char *) malloc( lstrlen( h->h_name + 1 ));
to
= (char *) malloc( lstrlen( h->h_name ) + 1);
There is still a memory leak in this module according to BCW. Anyone fix
this?