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:
Paul Saab 2000-12-08 05:02:12 +00:00
parent d5b14b2a37
commit 3894088f17
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=69739

View File

@ -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);