diff options
author | 2011-05-06 17:31:16 +0000 | |
---|---|---|
committer | 2011-05-06 17:31:16 +0000 | |
commit | 949a82013d491fb066d4374da48cba5429ec906d (patch) | |
tree | 59e384b99de71c5f39842a7ac03fbbc07025a30a | |
parent | If it doesn't exist, create the directory holding the link we are about (diff) | |
download | wireguard-openbsd-949a82013d491fb066d4374da48cba5429ec906d.tar.xz wireguard-openbsd-949a82013d491fb066d4374da48cba5429ec906d.zip |
session id is only in the lower 32 bits of crp_sid
-rw-r--r-- | sys/arch/amd64/amd64/aesni.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/amd64/amd64/aesni.c b/sys/arch/amd64/amd64/aesni.c index 566332df921..0f519745ae1 100644 --- a/sys/arch/amd64/amd64/aesni.c +++ b/sys/arch/amd64/amd64/aesni.c @@ -1,4 +1,4 @@ -/* $OpenBSD: aesni.c,v 1.20 2011/04/20 06:51:34 deraadt Exp $ */ +/* $OpenBSD: aesni.c,v 1.21 2011/05/06 17:31:16 mikeb Exp $ */ /*- * Copyright (c) 2003 Jason Wright * Copyright (c) 2003, 2004 Theo de Raadt @@ -414,7 +414,7 @@ aesni_process(struct cryptop *crp) return (EINVAL); LIST_FOREACH(ses, &aesni_sc->sc_sessions, ses_entries) { - if (ses->ses_sid == crp->crp_sid) + if (ses->ses_sid == (crp->crp_sid & 0xffffffff)) break; } |