summaryrefslogtreecommitdiff
path: root/sys/netinet
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>1999-02-19 00:48:21 +0000
committerArtur Grabowski <art@cvs.openbsd.org>1999-02-19 00:48:21 +0000
commit0c30bb009d60291b42759c4eda4d3f889c6e8bae (patch)
tree772357528ed095cf3408154c09724cc4256a801a /sys/netinet
parented63b54617985ca43ebcc5a47528e230e29cb94f (diff)
when checking for weak keys compare sizeof(des_cblock) bytes insetad of sizeof(key) bytes
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/libdeslite/set_key.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/libdeslite/set_key.c b/sys/netinet/libdeslite/set_key.c
index 6569e272f60..c62004b5c63 100644
--- a/sys/netinet/libdeslite/set_key.c
+++ b/sys/netinet/libdeslite/set_key.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: set_key.c,v 1.3 1997/02/24 14:06:53 niklas Exp $ */
+/* $OpenBSD: set_key.c,v 1.4 1999/02/19 00:48:20 art Exp $ */
/* lib/des/set_key.c */
/* Copyright (C) 1995 Eric Young (eay@mincom.oz.au)
@@ -128,7 +128,7 @@ des_cblock (*key);
* this section very often :-(, thanks to
* engineering@MorningStar.Com for the fix
* eay 93/06/29 */
- if (bcmp(weak_keys[i],key,sizeof(key)) == 0) return(1);
+ if (bcmp(weak_keys[i],key,sizeof(des_cblock)) == 0) return(1);
return(0);
}