=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ssh/Attic/buffer.c,v retrieving revision 1.18 retrieving revision 1.18.2.1 diff -u -r1.18 -r1.18.2.1 --- src/usr.bin/ssh/Attic/buffer.c 2003/09/16 21:02:39 1.18 +++ src/usr.bin/ssh/Attic/buffer.c 2004/02/28 03:51:32 1.18.2.1 @@ -12,7 +12,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: buffer.c,v 1.18 2003/09/16 21:02:39 markus Exp $"); +RCSID("$OpenBSD: buffer.c,v 1.18.2.1 2004/02/28 03:51:32 brad Exp $"); #include "xmalloc.h" #include "buffer.h" @@ -39,6 +39,7 @@ { if (buffer->alloc > 0) { memset(buffer->buf, 0, buffer->alloc); + buffer->alloc = 0; xfree(buffer->buf); } } @@ -104,7 +105,7 @@ goto restart; } /* Increase the size of the buffer and retry. */ - + newlen = buffer->alloc + len + 32768; if (newlen > 0xa00000) fatal("buffer_append_space: alloc %u not supported", @@ -168,7 +169,7 @@ void buffer_dump(Buffer *buffer) { - int i; + u_int i; u_char *ucp = buffer->buf; for (i = buffer->offset; i < buffer->end; i++) {