diff options
| author | Paul Saab <ps@FreeBSD.org> | 2000-12-08 05:02:12 +0000 |
|---|---|---|
| committer | Paul Saab <ps@FreeBSD.org> | 2000-12-08 05:02:12 +0000 |
| commit | 3894088f174dc432272318681468e5a8edaa0138 (patch) | |
| tree | 6470d3a95a97cb5ce0f6f7aef1abd6d334f98bcc | |
| parent | d5b14b2a372d25ed9f06ed1856a19283aee2ebb0 (diff) | |
Notes
| -rw-r--r-- | lib/libstand/tftp.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libstand/tftp.c b/lib/libstand/tftp.c index e7f885d9071d..3b481734716d 100644 --- a/lib/libstand/tftp.c +++ b/lib/libstand/tftp.c @@ -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); |
