]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
login-common: client-common-auth - Use safe_memset() to clear auth response
authorStephan Bosch <stephan.bosch@open-xchange.com>
Sat, 7 Oct 2023 23:21:47 +0000 (01:21 +0200)
committerstephan.bosch <stephan.bosch@open-xchange.com>
Mon, 23 Oct 2023 15:50:54 +0000 (15:50 +0000)
src/login-common/client-common-auth.c

index cdbf037d47af4d78637b409a3a88ac57b9f2a8a4..927122296cbf70e9f5911ac7ffcfa6c9b653e381 100644 (file)
@@ -878,8 +878,8 @@ static void client_auth_input(struct client *client)
                return;
 
        client_auth_respond(client, str_c(client->auth_response));
-       memset(str_c_modifiable(client->auth_response), 0,
-              str_len(client->auth_response));
+       safe_memset(str_c_modifiable(client->auth_response), 0,
+                   str_len(client->auth_response));
 }
 
 void client_auth_send_challenge(struct client *client, const char *data)