summaryrefslogtreecommitdiff
path: root/auth-chall.c
diff options
context:
space:
mode:
Diffstat (limited to 'auth-chall.c')
-rw-r--r--auth-chall.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/auth-chall.c b/auth-chall.c
index 919b1eaa4..0005aa88b 100644
--- a/auth-chall.c
+++ b/auth-chall.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: auth-chall.c,v 1.12 2006/08/03 03:34:41 deraadt Exp $ */ 1/* $OpenBSD: auth-chall.c,v 1.13 2013/05/17 00:13:13 djm Exp $ */
2/* 2/*
3 * Copyright (c) 2001 Markus Friedl. All rights reserved. 3 * Copyright (c) 2001 Markus Friedl. All rights reserved.
4 * 4 *
@@ -69,11 +69,11 @@ get_challenge(Authctxt *authctxt)
69 fatal("get_challenge: numprompts < 1"); 69 fatal("get_challenge: numprompts < 1");
70 challenge = xstrdup(prompts[0]); 70 challenge = xstrdup(prompts[0]);
71 for (i = 0; i < numprompts; i++) 71 for (i = 0; i < numprompts; i++)
72 xfree(prompts[i]); 72 free(prompts[i]);
73 xfree(prompts); 73 free(prompts);
74 xfree(name); 74 free(name);
75 xfree(echo_on); 75 free(echo_on);
76 xfree(info); 76 free(info);
77 77
78 return (challenge); 78 return (challenge);
79} 79}
@@ -102,11 +102,11 @@ verify_response(Authctxt *authctxt, const char *response)
102 authenticated = 1; 102 authenticated = 1;
103 103
104 for (i = 0; i < numprompts; i++) 104 for (i = 0; i < numprompts; i++)
105 xfree(prompts[i]); 105 free(prompts[i]);
106 xfree(prompts); 106 free(prompts);
107 xfree(name); 107 free(name);
108 xfree(echo_on); 108 free(echo_on);
109 xfree(info); 109 free(info);
110 break; 110 break;
111 } 111 }
112 device->free_ctx(authctxt->kbdintctxt); 112 device->free_ctx(authctxt->kbdintctxt);