- markus@cvs.openbsd.org 2002/03/26 15:23:40
[bufaux.c] do not talk about packets in bufaux
This commit is contained in:
parent
eb041dca1f
commit
cd8bbce80b
|
@ -8,6 +8,9 @@
|
||||||
- markus@cvs.openbsd.org 2002/03/26 11:37:05
|
- markus@cvs.openbsd.org 2002/03/26 11:37:05
|
||||||
[ssh.c]
|
[ssh.c]
|
||||||
update Copyright
|
update Copyright
|
||||||
|
- markus@cvs.openbsd.org 2002/03/26 15:23:40
|
||||||
|
[bufaux.c]
|
||||||
|
do not talk about packets in bufaux
|
||||||
|
|
||||||
20020325
|
20020325
|
||||||
- (stevesk) import OpenBSD <sys/tree.h> as "openbsd-compat/tree.h"
|
- (stevesk) import OpenBSD <sys/tree.h> as "openbsd-compat/tree.h"
|
||||||
|
@ -8071,4 +8074,4 @@
|
||||||
- Wrote replacements for strlcpy and mkdtemp
|
- Wrote replacements for strlcpy and mkdtemp
|
||||||
- Released 1.0pre1
|
- Released 1.0pre1
|
||||||
|
|
||||||
$Id: ChangeLog,v 1.1994 2002/03/27 17:20:38 mouring Exp $
|
$Id: ChangeLog,v 1.1995 2002/03/27 17:23:44 mouring Exp $
|
||||||
|
|
4
bufaux.c
4
bufaux.c
|
@ -37,7 +37,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "includes.h"
|
#include "includes.h"
|
||||||
RCSID("$OpenBSD: bufaux.c,v 1.23 2002/03/18 17:25:29 provos Exp $");
|
RCSID("$OpenBSD: bufaux.c,v 1.24 2002/03/26 15:23:40 markus Exp $");
|
||||||
|
|
||||||
#include <openssl/bn.h>
|
#include <openssl/bn.h>
|
||||||
#include "bufaux.h"
|
#include "bufaux.h"
|
||||||
|
@ -196,7 +196,7 @@ buffer_get_string(Buffer *buffer, u_int *length_ptr)
|
||||||
/* Get the length. */
|
/* Get the length. */
|
||||||
len = buffer_get_int(buffer);
|
len = buffer_get_int(buffer);
|
||||||
if (len > 256 * 1024)
|
if (len > 256 * 1024)
|
||||||
fatal("Received packet with bad string length %d", len);
|
fatal("buffer_get_string: bad string length %d", len);
|
||||||
/* Allocate space for the string. Add one byte for a null character. */
|
/* Allocate space for the string. Add one byte for a null character. */
|
||||||
value = xmalloc(len + 1);
|
value = xmalloc(len + 1);
|
||||||
/* Get the string. */
|
/* Get the string. */
|
||||||
|
|
Loading…
Reference in New Issue