diff options
Diffstat (limited to 'kex.c')
-rw-r--r-- | kex.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -28,7 +28,7 @@ | |||
28 | */ | 28 | */ |
29 | 29 | ||
30 | #include "includes.h" | 30 | #include "includes.h" |
31 | RCSID("$Id: kex.c,v 1.7 2000/04/16 01:52:47 damien Exp $"); | 31 | RCSID("$Id: kex.c,v 1.8 2000/05/09 01:03:01 damien Exp $"); |
32 | 32 | ||
33 | #include "ssh.h" | 33 | #include "ssh.h" |
34 | #include "ssh2.h" | 34 | #include "ssh2.h" |
@@ -314,7 +314,7 @@ choose_mac(Mac *mac, char *client, char *server) | |||
314 | } | 314 | } |
315 | mac->name = name; | 315 | mac->name = name; |
316 | mac->mac_len = mac->md->md_size; | 316 | mac->mac_len = mac->md->md_size; |
317 | mac->key_len = datafellows ? 16 : mac->mac_len; | 317 | mac->key_len = (datafellows & SSH_BUG_HMAC) ? 16 : mac->mac_len; |
318 | mac->key = NULL; | 318 | mac->key = NULL; |
319 | mac->enabled = 0; | 319 | mac->enabled = 0; |
320 | } | 320 | } |