The final fallthrough path (no rules matched) called xasprintf(msg, ...)
without checking if msg != NULL, unlike all other xasprintf calls in the
same function. If a caller passes NULL for msg, this would crash in
vasprintf(NULL, ...).
}
}
- xasprintf(msg, "access -"
- " A mail from \"%s\" didn't match any rules, and"
- " was denied by default.", from);
+ if (msg != NULL)
+ xasprintf(msg, "access -"
+ " A mail from \"%s\" didn't match any rules, and"
+ " was denied by default.", from);
return ACT_DENY;
}