diff options
Diffstat (limited to 'deattack.c')
-rw-r--r-- | deattack.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/deattack.c b/deattack.c index 0442501e7..8b55d6686 100644 --- a/deattack.c +++ b/deattack.c | |||
@@ -18,7 +18,7 @@ | |||
18 | */ | 18 | */ |
19 | 19 | ||
20 | #include "includes.h" | 20 | #include "includes.h" |
21 | RCSID("$OpenBSD: deattack.c,v 1.18 2002/03/04 17:27:39 stevesk Exp $"); | 21 | RCSID("$OpenBSD: deattack.c,v 1.19 2003/09/18 08:49:45 markus Exp $"); |
22 | 22 | ||
23 | #include "deattack.h" | 23 | #include "deattack.h" |
24 | #include "log.h" | 24 | #include "log.h" |
@@ -100,12 +100,12 @@ detect_attack(u_char *buf, u_int32_t len, u_char *IV) | |||
100 | 100 | ||
101 | if (h == NULL) { | 101 | if (h == NULL) { |
102 | debug("Installing crc compensation attack detector."); | 102 | debug("Installing crc compensation attack detector."); |
103 | h = (u_int16_t *) xmalloc(l * HASH_ENTRYSIZE); | ||
103 | n = l; | 104 | n = l; |
104 | h = (u_int16_t *) xmalloc(n * HASH_ENTRYSIZE); | ||
105 | } else { | 105 | } else { |
106 | if (l > n) { | 106 | if (l > n) { |
107 | h = (u_int16_t *) xrealloc(h, l * HASH_ENTRYSIZE); | ||
107 | n = l; | 108 | n = l; |
108 | h = (u_int16_t *) xrealloc(h, n * HASH_ENTRYSIZE); | ||
109 | } | 109 | } |
110 | } | 110 | } |
111 | 111 | ||