summaryrefslogtreecommitdiff
path: root/sbin/isakmpd/pf_key_v2.c
diff options
context:
space:
mode:
authorHans-Joerg Hoexer <hshoexer@cvs.openbsd.org>2004-12-27 11:02:04 +0000
committerHans-Joerg Hoexer <hshoexer@cvs.openbsd.org>2004-12-27 11:02:04 +0000
commitcf7cca038e1072352eafc87f10ba6eee952a3c2a (patch)
tree46828baf7a7bfe22af8955ce9e5ffee64460ed9b /sbin/isakmpd/pf_key_v2.c
parente8a3113f375447d9d92edd89fe06c2d7c5a480eb (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.c4
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) {