Apply patch from shadow@andrew.cmu.edu to fix a bug I fixed
authorSam Hartman <hartmans@mit.edu>
Wed, 20 Nov 1996 23:00:07 +0000 (23:00 +0000)
committerSam Hartman <hartmans@mit.edu>
Wed, 20 Nov 1996 23:00:07 +0000 (23:00 +0000)
for krb5 if compiled with Kerberos support; we don't support that,
but applying the patch was easier than removing the code.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9445 dc483132-0cff-0310-8789-dd5450dbe970

src/appl/gssftp/ftp/ChangeLog
src/appl/gssftp/ftp/secure.c

index 9224e5dd8747751beeaa38a2ffd5dbc1ddee372a..3262141e9026cacf14be1678fee1592e05a94896 100644 (file)
@@ -3,10 +3,17 @@ Fri Sep 27 16:05:09 1996  Tom Yu  <tlyu@mit.edu>
        * cmds.c (setpeer): Apply jik's fix so "-n" actually works as
        intended.
 
+
 Tue Sep 10 14:07:15 1996  Tom Yu  <tlyu@mit.edu>
 
        * ftp.M: remove ".so man1/header.doc"
 
+Fri Aug 16 20:04:03 1996  Sam Hartman  <hartmans@mit.edu>
+
+       * secure.c (nbyte;): Fix for Kerberos IV version of the memory
+       allocation bug I fixed for Kerberos V; you want nbyte +
+       FUDGE_FACTOR, not out_buff.length.
+
 Tue Jul 30 19:45:45 1996  Samuel D Hartman  (hartmans@vorlon)
 
        * ftp.c (empt resety): Use fd_set as a typedef not a struct.
index 183f10a3ab28b6aa2af12f61581f8b2797ae6e65..550160b0387c2b296e160ac8a4cc56d6e54200d1 100644 (file)
@@ -234,7 +234,7 @@ unsigned int nbyte;
                if (outbuf?
                    (outbuf = realloc(outbuf, (unsigned) (nbyte + FUDGE_FACTOR))):
                    (outbuf = malloc((unsigned) (nbyte + FUDGE_FACTOR)))) {
-                                       bufsize = out_buf.length;
+                                       bufsize =nbyte + FUDGE_FACTOR;
                } else {
                        bufsize = 0;
                        secure_error("%s (in malloc of PROT buffer)",