summaryrefslogtreecommitdiff
path: root/local.c
diff options
context:
space:
mode:
authorJosé Fonseca <jrfonseca@users.sourceforge.net>2007-01-27 07:47:33 +0000
committerJosé Fonseca <jrfonseca@users.sourceforge.net>2007-01-27 07:47:33 +0000
commitc9f7f07a77a55941e6f3158024a31d6e55bdea8d (patch)
tree56d72c433f0321b3c22d1c61398c57b0bcc2639f /local.c
parent7646f714068d0c7a944c0b639c53885fab569daa (diff)
Prevent segfault expanding %F in the MDA string when the reverse path is not specified.
Diffstat (limited to 'local.c')
-rw-r--r--local.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/local.c b/local.c
index 0937178..494d163 100644
--- a/local.c
+++ b/local.c
@@ -97,7 +97,7 @@ void local_init(message_t *message)
/* get From address for %F */
if (strstr(before, "%F"))
{
- from = xstrdup(message->reverse_path);
+ from = xstrdup(message->reverse_path ? message->reverse_path : "");
sanitize(from);