diff options
Diffstat (limited to 'hostfile.c')
-rw-r--r-- | hostfile.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/hostfile.c b/hostfile.c index 0198cd001..8bc9540b7 100644 --- a/hostfile.c +++ b/hostfile.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: hostfile.c,v 1.54 2014/01/27 18:58:14 markus Exp $ */ | 1 | /* $OpenBSD: hostfile.c,v 1.55 2014/01/31 16:39:19 tedu Exp $ */ |
2 | /* | 2 | /* |
3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland | 4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
@@ -333,10 +333,10 @@ free_hostkeys(struct hostkeys *hostkeys) | |||
333 | free(hostkeys->entries[i].host); | 333 | free(hostkeys->entries[i].host); |
334 | free(hostkeys->entries[i].file); | 334 | free(hostkeys->entries[i].file); |
335 | key_free(hostkeys->entries[i].key); | 335 | key_free(hostkeys->entries[i].key); |
336 | bzero(hostkeys->entries + i, sizeof(*hostkeys->entries)); | 336 | explicit_bzero(hostkeys->entries + i, sizeof(*hostkeys->entries)); |
337 | } | 337 | } |
338 | free(hostkeys->entries); | 338 | free(hostkeys->entries); |
339 | bzero(hostkeys, sizeof(*hostkeys)); | 339 | explicit_bzero(hostkeys, sizeof(*hostkeys)); |
340 | free(hostkeys); | 340 | free(hostkeys); |
341 | } | 341 | } |
342 | 342 | ||