summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Thomas McBride <mcbride@cvs.openbsd.org>2003-10-23 23:00:38 +0000
committerRyan Thomas McBride <mcbride@cvs.openbsd.org>2003-10-23 23:00:38 +0000
commit480a55773530e00670e61d9c180bf824ddefba72 (patch)
treee8a513763c3d2b054bc4ef6005f7073eee70473c
parentd260b3a08de8fb9ef50a792986676a4738fff906 (diff)
We want to hash the whole md, not just the size of the pointer.
Found testing CARP between sparc and sparc64.
-rw-r--r--sys/netinet/ip_carp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/ip_carp.c b/sys/netinet/ip_carp.c
index 60401d0ab87..37e43a06cad 100644
--- a/sys/netinet/ip_carp.c
+++ b/sys/netinet/ip_carp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ip_carp.c,v 1.6 2003/10/22 14:56:54 markus Exp $ */
+/* $OpenBSD: ip_carp.c,v 1.7 2003/10/23 23:00:37 mcbride Exp $ */
/*
* Copyright (c) 2002 Michael Shalayeff. All rights reserved.
@@ -189,7 +189,7 @@ carp_hmac_generate(struct carp_softc *sc, u_int32_t counter[2],
/* outer hash */
SHA1Init(&sha1ctx);
SHA1Update(&sha1ctx, opad, CARP_HMAC_PAD);
- SHA1Update(&sha1ctx, md, sizeof(md));
+ SHA1Update(&sha1ctx, md, sizeof(*md));
SHA1Final(md, &sha1ctx);
}