diff options
author | Mike Belopuhov <mikeb@cvs.openbsd.org> | 2010-09-20 18:06:23 +0000 |
---|---|---|
committer | Mike Belopuhov <mikeb@cvs.openbsd.org> | 2010-09-20 18:06:23 +0000 |
commit | 97de5ba69051ea364756f5e2fb19db07b89c6b7f (patch) | |
tree | eafe61959a7fa19c4d6c65fe3fc41866b9abfb6d /sbin/iked | |
parent | bfd863edcaadd3a7a36f6a148650568c392904bb (diff) |
fixup length of an eap identity message payload.
ok reyk
Diffstat (limited to 'sbin/iked')
-rw-r--r-- | sbin/iked/eap.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/iked/eap.c b/sbin/iked/eap.c index 55d87166941..e27ab5d1c9b 100644 --- a/sbin/iked/eap.c +++ b/sbin/iked/eap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: eap.c,v 1.1 2010/06/03 16:41:12 reyk Exp $ */ +/* $OpenBSD: eap.c,v 1.2 2010/09/20 18:06:22 mikeb Exp $ */ /* $vantronix: eap.c,v 1.12 2010/05/31 11:30:08 reyk Exp $ */ /* @@ -75,7 +75,7 @@ eap_identity_response(struct eap_message *eap) char *str; u_int8_t *ptr = (u_int8_t *)eap; - len = betoh16(eap->eap_length - sizeof(*eap)); + len = betoh16(eap->eap_length) - sizeof(*eap); ptr += sizeof(*eap); if (len == 0 || (str = get_string(ptr, len)) == NULL) { |