diff options
author | Colin Watson <cjwatson@debian.org> | 2014-03-20 00:24:29 +0000 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2014-03-20 00:24:29 +0000 |
commit | 796ba4fd011b5d0d9d78d592ba2f30fc9d5ed2e7 (patch) | |
tree | 98105bf1621565a2679d5f7f4d650561be2d7666 /auth2-chall.c | |
parent | 9a975a9faed7c4f334e8c8490db3e77e102f2b21 (diff) | |
parent | 19158b2447e35838d69b2b735fb640d1e86061ea (diff) |
Import openssh_6.6p1.orig.tar.gz
Diffstat (limited to 'auth2-chall.c')
-rw-r--r-- | auth2-chall.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/auth2-chall.c b/auth2-chall.c index 031c2828c..980250a91 100644 --- a/auth2-chall.c +++ b/auth2-chall.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: auth2-chall.c,v 1.39 2013/11/08 00:39:14 djm Exp $ */ | 1 | /* $OpenBSD: auth2-chall.c,v 1.41 2014/02/02 03:44:31 djm Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2001 Markus Friedl. All rights reserved. | 3 | * Copyright (c) 2001 Markus Friedl. All rights reserved. |
4 | * Copyright (c) 2001 Per Allansson. All rights reserved. | 4 | * Copyright (c) 2001 Per Allansson. All rights reserved. |
@@ -148,7 +148,7 @@ kbdint_free(KbdintAuthctxt *kbdintctxt) | |||
148 | if (kbdintctxt->device) | 148 | if (kbdintctxt->device) |
149 | kbdint_reset_device(kbdintctxt); | 149 | kbdint_reset_device(kbdintctxt); |
150 | free(kbdintctxt->devices); | 150 | free(kbdintctxt->devices); |
151 | bzero(kbdintctxt, sizeof(*kbdintctxt)); | 151 | explicit_bzero(kbdintctxt, sizeof(*kbdintctxt)); |
152 | free(kbdintctxt); | 152 | free(kbdintctxt); |
153 | } | 153 | } |
154 | /* get next device */ | 154 | /* get next device */ |
@@ -312,7 +312,7 @@ input_userauth_info_response(int type, u_int32_t seq, void *ctxt) | |||
312 | res = kbdintctxt->device->respond(kbdintctxt->ctxt, nresp, response); | 312 | res = kbdintctxt->device->respond(kbdintctxt->ctxt, nresp, response); |
313 | 313 | ||
314 | for (i = 0; i < nresp; i++) { | 314 | for (i = 0; i < nresp; i++) { |
315 | memset(response[i], 'r', strlen(response[i])); | 315 | explicit_bzero(response[i], strlen(response[i])); |
316 | free(response[i]); | 316 | free(response[i]); |
317 | } | 317 | } |
318 | free(response); | 318 | free(response); |