diff options
Diffstat (limited to 'crypto/openssh/roaming_common.c')
-rw-r--r-- | crypto/openssh/roaming_common.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/crypto/openssh/roaming_common.c b/crypto/openssh/roaming_common.c index 9adbe56..8d0b605 100644 --- a/crypto/openssh/roaming_common.c +++ b/crypto/openssh/roaming_common.c @@ -1,4 +1,4 @@ -/* $OpenBSD: roaming_common.c,v 1.8 2010/01/12 00:59:29 djm Exp $ */ +/* $OpenBSD: roaming_common.c,v 1.9 2011/12/07 05:44:38 djm Exp $ */ /* * Copyright (c) 2004-2009 AppGate Network Security AB * @@ -75,6 +75,8 @@ get_recv_buf_size() void set_out_buffer_size(size_t size) { + if (size == 0 || size > MAX_ROAMBUF) + fatal("%s: bad buffer size %lu", __func__, (u_long)size); /* * The buffer size can only be set once and the buffer will live * as long as the session lives. |