X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/dd740c4e3e407d8dba7884bb599c1f5a588b05e9..f1920d78123667716f2321d37ce37628603b2700:/sbr/credentials.c?ds=inline diff --git a/sbr/credentials.c b/sbr/credentials.c index ae53a742..ff4ee84e 100644 --- a/sbr/credentials.c +++ b/sbr/credentials.c @@ -48,8 +48,8 @@ nmh_get_credentials (char *host, char *user, int sasl, nmh_creds_t creds) { creds->host = host; if (cred_style == NULL || ! strcmp (cred_style, "legacy")) { + creds->user = user == NULL ? getusername () : user; if (sasl) { - creds->user = user == NULL ? getusername () : user; /* This is what inc.c and msgchk.c used to contain. */ /* Only inc.c and msgchk.c do this. smtp.c doesn't. */