Correctly transmit empty file
This commit is contained in:
parent
8c25c63efd
commit
d210bbebf5
1 changed files with 1 additions and 1 deletions
2
tftp.c
2
tftp.c
|
@ -272,7 +272,7 @@ int tftp_put(struct nmrpd_args *args)
|
||||||
ret = len;
|
ret = len;
|
||||||
goto cleanup;
|
goto cleanup;
|
||||||
} else if (!len) {
|
} else if (!len) {
|
||||||
if (last_len != 512) {
|
if (last_len != 512 && last_len != -1) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue