From 164fc755c40aeb37efe1b330fd0c01b7fa9ce72c Mon Sep 17 00:00:00 2001 From: Ken Hornstein Date: Tue, 10 Jun 2014 21:08:02 -0400 Subject: [PATCH] Always default the username to the local username, even when not doing SASL. Fix suggested by Michael Urban. --- sbr/credentials.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. */ -- 2.56.0