diff options
author | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 1997-02-22 11:34:48 +0000 |
---|---|---|
committer | Angelos D. Keromytis <angelos@cvs.openbsd.org> | 1997-02-22 11:34:48 +0000 |
commit | e5bd2df2165c8c207d8f8bef2886037ec0767ac7 (patch) | |
tree | 7e1f7cf7e5bc67b3496a69da9567aa14c202c29e /sys/netinet | |
parent | 4a6f1817aa2011c0f57331995bf7ac5cf498cb86 (diff) |
Fixed problem with authenticator length checking.
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/ip_ahhmacmd5.c | 2 | ||||
-rw-r--r-- | sys/netinet/ip_ahhmacsha1.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/ip_ahhmacmd5.c b/sys/netinet/ip_ahhmacmd5.c index c4ddea126a9..1ee56be908f 100644 --- a/sys/netinet/ip_ahhmacmd5.c +++ b/sys/netinet/ip_ahhmacmd5.c @@ -189,7 +189,7 @@ ahhmacmd5_input(struct mbuf *m, struct tdb *tdb) else ado = 0; - if (ah->ah_hl != xd->amx_alen + ado) + if (ah->ah_hl * sizeof(u_int32_t) != xd->amx_alen + ado) { #ifdef ENCDEBUG if (encdebug) diff --git a/sys/netinet/ip_ahhmacsha1.c b/sys/netinet/ip_ahhmacsha1.c index 6e66955fe06..9a9d4e33f9c 100644 --- a/sys/netinet/ip_ahhmacsha1.c +++ b/sys/netinet/ip_ahhmacsha1.c @@ -189,7 +189,7 @@ ahhmacsha1_input(struct mbuf *m, struct tdb *tdb) else ado = 0; - if (ah->ah_hl != xd->amx_alen + ado) + if (ah->ah_hl * sizeof(u_int32_t) != xd->amx_alen + ado) { #ifdef ENCDEBUG if (encdebug) |