aboutsummaryrefslogtreecommitdiff
path: root/crypto/openssh/auth-chall.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/openssh/auth-chall.c')
-rw-r--r--crypto/openssh/auth-chall.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/crypto/openssh/auth-chall.c b/crypto/openssh/auth-chall.c
index b9c2efd9b6d9..1daa1441887d 100644
--- a/crypto/openssh/auth-chall.c
+++ b/crypto/openssh/auth-chall.c
@@ -99,3 +99,11 @@ verify_response(Authctxt *authctxt, const char *response)
authctxt->kbdintctxt = NULL;
return res ? 0 : 1;
}
+void
+abandon_challenge_response(Authctxt *authctxt)
+{
+ if (authctxt->kbdintctxt != NULL) {
+ device->free_ctx(authctxt->kbdintctxt);
+ authctxt->kbdintctxt = NULL;
+ }
+}