]> andersk Git - gssapi-openssh.git/blobdiff - openssh/buffer.c
update to http://www.psc.edu/networking/projects/hpn-ssh/openssh-4.7p1-hpn13v1.diff.gz
[gssapi-openssh.git] / openssh / buffer.c
index cb0b620703ccadf23ce5eb480c6fdeb6542c018d..1c04cab3901ed9822704b018637a9b0e510f1929 100644 (file)
@@ -127,7 +127,9 @@ restart:
 
        /* Increase the size of the buffer and retry. */
        newlen = roundup(buffer->alloc + len, BUFFER_ALLOCSZ);
-       if (newlen > BUFFER_MAX_LEN_HPN)
+       /* need it to be slightly larger than the MAX LEN for this */
+       /* still investigating *why* but this works for now -cjr */
+       if (newlen > (BUFFER_MAX_LEN_HPN + BUFFER_MAX_LEN)) 
                fatal("buffer_append_space: alloc %u not supported",
                    newlen);
        buffer->buf = xrealloc(buffer->buf, 1, newlen);
This page took 0.038023 seconds and 4 git commands to generate.