Displaying 2 results from an estimated 2 matches for "recv_tim".
Did you mean:
recv_time
2013 Sep 03
1
[PATCH v2] tftp-hpa: add error check for disk filled up
...(ack): %m");
goto abort;
}
- write_behind(file, pf->f_convert);
+ if(write_behind(file, pf->f_convert) < 0) {
+ nak(ENOSPACE, NULL);
+ (void)fclose(file);
+ goto abort;
+ }
for (;;) {
n = recv_time(peer, dp, PKTSIZE, 0, &r_timeout);
if (n < 0) { /* really? */
@@ -1712,7 +1716,11 @@ static void tftp_recvfile(const struct formats *pf, struct tftphdr *oap, int oac
goto abort;
}
} while (size == segsize);
- write_behind(file, pf->f_conv...
2013 Aug 22
2
[PATCH] tftp-hpa: add error check for disk filled up
...(ack): %m");
goto abort;
}
- write_behind(file, pf->f_convert);
+ if(write_behind(file, pf->f_convert) < 0) {
+ nak(ENOSPACE, NULL);
+ (void)fclose(file);
+ goto abort;
+ }
for (;;) {
n = recv_time(peer, dp, PKTSIZE, 0, &r_timeout);
if (n < 0) { /* really? */
@@ -1712,7 +1716,11 @@ static void tftp_recvfile(const struct formats *pf, struct tftphdr *oap, int oac
goto abort;
}
} while (size == segsize);
- write_behind(file, pf->f_conv...