Changeset View
Changeset View
Standalone View
Standalone View
head/lib/libstand/tftp.c
Show First 20 Lines • Show All 461 Lines • ▼ Show 20 Lines | if (res < 0 || res > pathsize) { | ||||
free(tftpfile); | free(tftpfile); | ||||
return(ENOMEM); | return(ENOMEM); | ||||
} | } | ||||
res = tftp_makereq(tftpfile); | res = tftp_makereq(tftpfile); | ||||
if (res) { | if (res) { | ||||
free(tftpfile->path); | free(tftpfile->path); | ||||
free(tftpfile->pkt); | |||||
free(tftpfile); | free(tftpfile); | ||||
return (res); | return (res); | ||||
} | } | ||||
f->f_fsdata = (void *) tftpfile; | f->f_fsdata = (void *) tftpfile; | ||||
is_open = 1; | is_open = 1; | ||||
return (0); | return (0); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 307 Lines • Show Last 20 Lines |