]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
login-common: Fix incorrect variable assignment in real_remote_ip
authorManuel Mausz <manuel@mausz.at>
Thu, 2 Jul 2026 13:28:07 +0000 (13:28 +0000)
committerMichael M Slusarz <michael.slusarz@open-xchange.com>
Wed, 8 Jul 2026 21:14:49 +0000 (15:14 -0600)
Correct real_remote_ip to look up client->real_remote_ip.

Signed-off-by: Michael M Slusarz <slusarz@open-xchange.com>
src/login-common/client-common.c

index 1dcf5e9d374647f0da2459fbed3e8386720f7a80..4ed2981357f975b2ce46f10e931b692d39e7ec9a 100644 (file)
@@ -1255,7 +1255,7 @@ get_var_expand_params(struct client *client)
        var_expand_table_set_value(tab, "real_local_ip",
                        net_ip2addr(&client->real_local_ip));
        var_expand_table_set_value(tab, "real_remote_ip",
-                       net_ip2addr(&client->real_local_ip));
+                       net_ip2addr(&client->real_remote_ip));
        var_expand_table_set_value(tab, "real_local_port",
                        dec2str(client->real_local_port));
        var_expand_table_set_value(tab, "real_remote_port",