]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
login-common: Get client certificate name only once
authorAki Tuomi <aki.tuomi@open-xchange.com>
Fri, 23 Dec 2022 10:20:09 +0000 (12:20 +0200)
committerAki Tuomi <aki.tuomi@open-xchange.com>
Fri, 23 Dec 2022 10:20:09 +0000 (12:20 +0200)
get_cert_username() already sets the username, so do not
get it again in different way here.

Broken 9296ff61b4044d6e1e5b5a65e9585c89517605fb

src/login-common/sasl-server.c

index 36e7f478de630b597b11466347f56512cef29c1f..53af6557fb43ef9f7ae52219b097c5f2426b7510 100644 (file)
@@ -458,7 +458,6 @@ int sasl_server_auth_request_info_fill(struct client *client,
 
        if (client->ssl_iostream != NULL) {
                unsigned char hash[MD5_RESULTLEN];
-               info_r->cert_username = ssl_iostream_get_peer_name(client->ssl_iostream);
                info_r->ssl_cipher = ssl_iostream_get_cipher(client->ssl_iostream,
                                                         &info_r->ssl_cipher_bits);
                info_r->ssl_pfs = ssl_iostream_get_pfs(client->ssl_iostream);