X-Git-Url: http://andersk.mit.edu/gitweb/gssapi-openssh.git/blobdiff_plain/30460aeb3d3c027b85eba1e4d45de75fb4b9d356..f96b1f670e759a7834f281f437f64550fdfecd97:/openssh/buffer.c?ds=inline diff --git a/openssh/buffer.c b/openssh/buffer.c index bdeb069..cb0b620 100644 --- a/openssh/buffer.c +++ b/openssh/buffer.c @@ -28,13 +28,6 @@ #define BUFFER_MAX_LEN 0xa00000 #define BUFFER_ALLOCSZ 0x008000 -/* this value for BUFFER_MAX_HPN_LEN is */ -/* still undersized for the faster networks */ -/* it might make sense to have yet another */ -/* MAX_LEN for 10+GB networks. Something closer to */ -/* 128MB or 192MB -cjr*/ -#define BUFFER_MAX_HPN_LEN 0x2000000 /*32MB*/ - /* Initializes the buffer structure. */ void @@ -134,7 +127,7 @@ restart: /* Increase the size of the buffer and retry. */ newlen = roundup(buffer->alloc + len, BUFFER_ALLOCSZ); - if (newlen > BUFFER_MAX_HPN_LEN) + if (newlen > BUFFER_MAX_LEN_HPN) fatal("buffer_append_space: alloc %u not supported", newlen); buffer->buf = xrealloc(buffer->buf, 1, newlen);