mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-27 13:32:45 +00:00
When TFTP tries to open a file, it is expecting struct open_file
member f_devdata to be a pointer to a socket number. When currdev is "pxe", that assumption is correct. When currdev is "disk*", that assumption is incorrect. Submitted by: Jim Browne <jbrowne@jbrowne.com>
This commit is contained in:
parent
d5b14b2a37
commit
3894088f17
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=69739
@ -256,6 +256,9 @@ tftp_open(path, f)
|
||||
return (ENOMEM);
|
||||
|
||||
tftpfile->iodesc = io = socktodesc(*(int *) (f->f_devdata));
|
||||
if (io == NULL)
|
||||
return (EINVAL);
|
||||
|
||||
io->destip = servip;
|
||||
tftpfile->off = 0;
|
||||
tftpfile->path = strdup(path);
|
||||
|
Loading…
Reference in New Issue
Block a user