Filename is already corrected by tftp code
This commit is contained in:
parent
bc43f07291
commit
d947fbc333
1 changed files with 1 additions and 5 deletions
6
nmrp.c
6
nmrp.c
|
|
@ -534,11 +534,7 @@ int nmrp_do(struct nmrpd_args *args)
|
||||||
printf("Received upload request: filename '%.*s'.\n",
|
printf("Received upload request: filename '%.*s'.\n",
|
||||||
len, filename);
|
len, filename);
|
||||||
} else if (!args->file_remote) {
|
} else if (!args->file_remote) {
|
||||||
if (tftp_is_valid_filename(args->file_local)) {
|
args->file_remote = args->file_local;
|
||||||
args->file_remote = args->file_local;
|
|
||||||
} else {
|
|
||||||
args->file_remote = "firmware";
|
|
||||||
}
|
|
||||||
printf("Received upload request with empty filename.");
|
printf("Received upload request with empty filename.");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue