qrexec-lib: check files limit before processing the file

Off-by-one error.
release2
Marek Marczykowski-Górecki 11 years ago
parent 05092fb3e6
commit 761305bc8b

@ -156,10 +156,10 @@ int do_unpack()
errno = 0;
break;
}
process_one_file(&untrusted_hdr);
total_files++;
if (files_limit && total_files > files_limit)
do_exit(EDQUOT, untrusted_namebuf);
process_one_file(&untrusted_hdr);
}
send_status_and_crc(errno, untrusted_namebuf);
return errno;

Loading…
Cancel
Save