]> git.ipfire.org Git - thirdparty/mlmmj.git/commitdiff
mlmmj-process: reduce the scope of the maxmailsizestr
authorBaptiste Daroussin <bapt@FreeBSD.org>
Fri, 14 Apr 2023 13:34:00 +0000 (15:34 +0200)
committerBaptiste Daroussin <bapt@FreeBSD.org>
Fri, 14 Apr 2023 13:34:00 +0000 (15:34 +0200)
src/mlmmj-process.c

index 600221aac73e18e149594b0fa9ef890be5350c6f..633dc8c7fa11cb08a83988bec2da59a6556e378f 100644 (file)
@@ -386,7 +386,6 @@ int main(int argc, char **argv)
        char *bindir, *subjectprefix, *discardname;
        text *txt;
        char *queuefilename, *recipextra = NULL, *owner = NULL;
-       char *maxmailsizestr;
        char *subject = NULL, *posteraddr = NULL;
        char *envstr;
        const char *efrom = "";
@@ -698,6 +697,7 @@ int main(int argc, char **argv)
                }
 
                if(st.st_size > maxmailsize) {
+                       char *maxmailsizestr;
                        if (statctrl(ml.ctrlfd, "nomaxmailsizedenymails")) {
                                errno = 0;
                                log_error(LOG_ARGS, "Discarding %s due to"