Skip to content

Commit

Permalink
lib-lda: Properly check whether MAIL FROM is the NULL sender <>.
Browse files Browse the repository at this point in the history
There's a function for that, since comparison with NULL pointer is not sufficient.
  • Loading branch information
stephanbosch authored and sirainen committed Dec 14, 2017
1 parent e366340 commit a1f1ff1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib-lda/mail-deliver.c
Expand Up @@ -409,7 +409,7 @@ mail_deliver_get_return_address(struct mail_deliver_context *ctx)
const char *path, *error;
int ret;

if (ctx->mail_from != NULL)
if (!smtp_address_isnull(ctx->mail_from))
return ctx->mail_from;

if ((ret=mail_get_first_header(ctx->src_mail,
Expand Down

0 comments on commit a1f1ff1

Please sign in to comment.