From 9cf3d79abc8720f19aef42b98770e6ab0bfdff88 Mon Sep 17 00:00:00 2001 From: JamesWrigley Date: Fri, 5 Jan 2024 12:53:11 +0100 Subject: [PATCH] Fix docstring for ssh_userauth_kbdint_getanswer() This incorrectly stated that it would return an integer value instead of a string. Signed-off-by: James Wrigley Reviewed-by: Jakub Jelen --- src/auth.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/auth.c b/src/auth.c index 820d82fc..0acd9686 100644 --- a/src/auth.c +++ b/src/auth.c @@ -2210,7 +2210,8 @@ int ssh_userauth_kbdint_getnanswers(ssh_session session) * * @param[in] i index The number of the ith answer. * - * @return 0 on success, < 0 on error. + * @return The answer string, or NULL if the answer is not + * available. Do not free the string. */ const char *ssh_userauth_kbdint_getanswer(ssh_session session, unsigned int i) {