Commit cc1c7ced cc1c7ced6b36bf6e184e5294e1ad2e2a580caa22 by Sergey Poznyakoff

(sieve_test): Bugfix: run

sieve_machine_destroy() only if the compilation succeeded.
(deliver): Removed unused variable sb. Use isize instead.
1 parent 551ae806
...@@ -400,8 +400,8 @@ sieve_test (struct mu_auth_data *auth, message_t msg) ...@@ -400,8 +400,8 @@ sieve_test (struct mu_auth_data *auth, message_t msg)
400 switch_user_id (auth, 0); 400 switch_user_id (auth, 0);
401 chdir ("/"); 401 chdir ("/");
402 } 402 }
403 sieve_machine_destroy (&mach);
403 } 404 }
404 sieve_machine_destroy (&mach);
405 } 405 }
406 } 406 }
407 free (progfile); 407 free (progfile);
...@@ -673,7 +673,6 @@ deliver (message_t msg, char *name) ...@@ -673,7 +673,6 @@ deliver (message_t msg, char *name)
673 #if defined(USE_DBM) 673 #if defined(USE_DBM)
674 { 674 {
675 size_t n, isize; 675 size_t n, isize;
676 struct stat sb;
677 676
678 switch (check_quota (name, size, &n)) 677 switch (check_quota (name, size, &n))
679 { 678 {
...@@ -694,7 +693,7 @@ deliver (message_t msg, char *name) ...@@ -694,7 +693,7 @@ deliver (message_t msg, char *name)
694 exit_code = EX_UNAVAILABLE; 693 exit_code = EX_UNAVAILABLE;
695 failed++; 694 failed++;
696 } 695 }
697 else if (sb.st_size > n) 696 else if (isize > n)
698 { 697 {
699 mailer_err ("%s: message would exceed maximum mailbox size for this recipient", 698 mailer_err ("%s: message would exceed maximum mailbox size for this recipient",
700 name); 699 name);
......