(send_data): Add call to secure_flush() to send a zero length
buffer when aborting.
(send_file_list): Add call to secure_flush() to send a zero length
buffer when aborting.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10528
dc483132-0cff-0310-8789-
dd5450dbe970
* ftpd.c (receive_data):
(send_data): Add support for sigsetjmp().
(main): Use sigaction() if we can to avoid SysV lossage.
+ (send_file_list): Oops missed a sigsetjmp() call.
+ (send_data): Add call to secure_flush() to send a zero length
+ buffer when aborting.
+ (send_file_list): Add call to secure_flush() to send a zero length
+ buffer when aborting.
* ftpcmd.y (PBSZ): Remove restriction on shrinking buffer size.
transflag++;
if (sigsetjmp(urgcatch, 1)) {
transflag = 0;
+ (void)secure_flush(fileno(outstr));
return;
}
switch (type) {
simple = 1;
}
- if (setjmp(urgcatch)) {
+ if (sigsetjmp(urgcatch, 1)) {
transflag = 0;
+ (void)secure_flush(fileno(dout));
return;
}
while (dirname = *dirlist++) {