Displaying 2 results from an estimated 2 matches for "th_opcod".
Did you mean:
th_opcode
2013 Sep 03
1
[PATCH v2] tftp-hpa: add error check for disk filled up
...t;
}
} while (size == segsize);
- write_behind(file, pf->f_convert);
+ if(write_behind(file, pf->f_convert) < 0) {
+ nak(ENOSPACE, NULL);
+ (void)fclose(file);
+ goto abort;
+ }
(void)fclose(file); /* close data file */
ap->th_opcode = htons((u_short) ACK); /* send the "final" ack */
--
1.7.10.4
2013 Aug 22
2
[PATCH] tftp-hpa: add error check for disk filled up
...t;
}
} while (size == segsize);
- write_behind(file, pf->f_convert);
+ if(write_behind(file, pf->f_convert) < 0) {
+ nak(ENOSPACE, NULL);
+ (void)fclose(file);
+ goto abort;
+ }
(void)fclose(file); /* close data file */
ap->th_opcode = htons((u_short) ACK); /* send the "final" ack */
--
1.7.10.4