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