diff options
-rw-r--r-- | NEWS | 3 | ||||
-rw-r--r-- | local.c | 2 |
2 files changed, 4 insertions, 1 deletions
@@ -13,6 +13,9 @@ News * Use a reasonable default for the reverse path when one is not specified, instead of an empty one. + * Prevent segfault expanding %F in the MDA string when the reverse + path is not specified. + * Version 0.5.1 (2005-03-10): @@ -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); |