summaryrefslogtreecommitdiff
path: root/monitor.c
diff options
context:
space:
mode:
Diffstat (limited to 'monitor.c')
-rw-r--r--monitor.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/monitor.c b/monitor.c
index 86562243d..1ac22782b 100644
--- a/monitor.c
+++ b/monitor.c
@@ -25,7 +25,7 @@
25 */ 25 */
26 26
27#include "includes.h" 27#include "includes.h"
28RCSID("$OpenBSD: monitor.c,v 1.19 2002/06/26 14:49:36 deraadt Exp $"); 28RCSID("$OpenBSD: monitor.c,v 1.20 2002/06/27 09:08:00 deraadt Exp $");
29 29
30#include <openssl/dh.h> 30#include <openssl/dh.h>
31 31
@@ -1456,7 +1456,7 @@ mm_zalloc(struct mm_master *mm, u_int ncount, u_int size)
1456 int len = size * ncount; 1456 int len = size * ncount;
1457 void *address; 1457 void *address;
1458 1458
1459 if (len <= 0) 1459 if (len <= 0 || size > 65535 || ncount > 65535)
1460 fatal("%s: mm_zalloc(%u, %u)", __func__, ncount, size); 1460 fatal("%s: mm_zalloc(%u, %u)", __func__, ncount, size);
1461 1461
1462 address = mm_malloc(mm, len); 1462 address = mm_malloc(mm, len);