diff options
author | Hans-Joerg Hoexer <hshoexer@cvs.openbsd.org> | 2004-12-27 11:02:04 +0000 |
---|---|---|
committer | Hans-Joerg Hoexer <hshoexer@cvs.openbsd.org> | 2004-12-27 11:02:04 +0000 |
commit | cf7cca038e1072352eafc87f10ba6eee952a3c2a (patch) | |
tree | 46828baf7a7bfe22af8955ce9e5ffee64460ed9b /sbin/isakmpd/pf_key_v2.c | |
parent | e8a3113f375447d9d92edd89fe06c2d7c5a480eb (diff) |
Fix broken pointer arithmetic when receiving a RSA key from the kernel. Found
and fix provided by Stefan Miltchev. Thanks!
ok otto@
Diffstat (limited to 'sbin/isakmpd/pf_key_v2.c')
-rw-r--r-- | sbin/isakmpd/pf_key_v2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/isakmpd/pf_key_v2.c b/sbin/isakmpd/pf_key_v2.c index 24a17797a63..66ffeabdb4a 100644 --- a/sbin/isakmpd/pf_key_v2.c +++ b/sbin/isakmpd/pf_key_v2.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pf_key_v2.c,v 1.150 2004/09/17 13:53:08 ho Exp $ */ +/* $OpenBSD: pf_key_v2.c,v 1.151 2004/12/27 11:02:03 hshoexer Exp $ */ /* $EOM: pf_key_v2.c,v 1.79 2000/12/12 00:33:19 niklas Exp $ */ /* @@ -4076,7 +4076,7 @@ pf_key_v2_acquire(struct pf_key_v2_msg *pmsg) } authm = key_printable(ISAKMP_KEY_RSA, ISAKMP_KEYTYPE_PRIVATE, - (u_int8_t *) sauth + 1, + (u_int8_t *)(sauth + 1), sauth->sadb_x_cred_len - sizeof *sauth); if (!authm) { |