diff options
author | Aaron Campbell <aaron@cvs.openbsd.org> | 2003-09-25 22:28:49 +0000 |
---|---|---|
committer | Aaron Campbell <aaron@cvs.openbsd.org> | 2003-09-25 22:28:49 +0000 |
commit | 8b89816853cd75b4cbe8385dad7f30617556a20e (patch) | |
tree | 6e8153707812ffcbce62c9e443fe4be783a6dccb /sbin/isakmpd | |
parent | a6737ba5753c53f28fb9485e45d00ec951b6f738 (diff) |
Fix off-by-one out-of-bounds write; millert@ ok
Diffstat (limited to 'sbin/isakmpd')
-rw-r--r-- | sbin/isakmpd/monitor.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/isakmpd/monitor.c b/sbin/isakmpd/monitor.c index 1cf454eeb29..8d26e1101ad 100644 --- a/sbin/isakmpd/monitor.c +++ b/sbin/isakmpd/monitor.c @@ -1,4 +1,4 @@ -/* $OpenBSD: monitor.c,v 1.9 2003/09/05 07:50:04 tedu Exp $ */ +/* $OpenBSD: monitor.c,v 1.10 2003/09/25 22:28:48 aaron Exp $ */ /* * Copyright (c) 2003 Håkan Olsson. All rights reserved. @@ -1090,7 +1090,7 @@ m_read_raw (int s, char *data, size_t maxlen) if (v > maxlen) return 1; r = read (s, data, v); - data[v] = 0; + data[v - 1] = 0; return (r == -1); } |