X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fmodules%2Fsmtp%2Fserv_smtp.c;h=be0ef80a47eaddcd3a18fe5bec07580e4a8c0d2e;hb=b9f6011abf947ceb06ad47dcc520f6b3ef7dbe9b;hp=be6347466270576c957d1610d8c29e1d3b5a961c;hpb=d607b3218f5b608f28d769d5f82e3540b38c8330;p=citadel.git diff --git a/citadel/modules/smtp/serv_smtp.c b/citadel/modules/smtp/serv_smtp.c index be6347466..be0ef80a4 100644 --- a/citadel/modules/smtp/serv_smtp.c +++ b/citadel/modules/smtp/serv_smtp.c @@ -619,7 +619,7 @@ void smtp_mail(long offset, long flags) { * address so we don't have to contend with the empty string causing * other code to fail when it's expecting something there. */ - if (StrLength(sSMTP->from)) { + if (StrLength(sSMTP->from) == 0) { StrBufPlain(sSMTP->from, HKEY("someone@example.com")); }