Remove "Ignoring extra upload request" path
This commit is contained in:
parent
913e0b9179
commit
61e0d0176c
1 changed files with 6 additions and 12 deletions
18
nmrp.c
18
nmrp.c
|
@ -675,19 +675,13 @@ int nmrp_do(struct nmrpd_args *args)
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case NMRP_C_TFTP_UL_REQ:
|
case NMRP_C_TFTP_UL_REQ:
|
||||||
if (!upload_ok) {
|
if (++ulreqs > 1) {
|
||||||
if (++ulreqs > 5) {
|
|
||||||
printf("Bailing out after %d upload requests.\n",
|
|
||||||
ulreqs);
|
|
||||||
tx.msg.code = NMRP_C_CLOSE_REQ;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
args->maybe_invalid_firmware_file = true;
|
args->maybe_invalid_firmware_file = true;
|
||||||
if (verbosity) {
|
}
|
||||||
printf("Ignoring extra upload request.\n");
|
|
||||||
}
|
if (ulreqs > NMRP_MAX_UL_REQS) {
|
||||||
ethsock_set_timeout(sock, args->ul_timeout);
|
printf("Bailing out after %d upload requests.\n", ulreqs);
|
||||||
|
tx.msg.code = NMRP_C_CLOSE_REQ;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue