]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
*-login: If client didn't log in, don't log mpid in logout message.
authorTimo Sirainen <tss@iki.fi>
Thu, 14 Oct 2010 16:02:20 +0000 (17:02 +0100)
committerTimo Sirainen <tss@iki.fi>
Thu, 14 Oct 2010 16:02:20 +0000 (17:02 +0100)
src/login-common/client-common.c

index 1cdb63ef3c1a2a950fa647fb5207e52a33bba65c..f2f2ca4ba9380b31702db2766f7cb0e37aa4da57 100644 (file)
@@ -393,7 +393,8 @@ get_var_expand_table(struct client *client)
                tab[12].value =
                        ssl_proxy_get_security_string(client->ssl_proxy);
        }
-       tab[13].value = dec2str(client->mail_pid);
+       tab[13].value = client->mail_pid == 0 ? "" :
+               dec2str(client->mail_pid);
        return tab;
 }