9
0
Fork 0

close net_store_fd after usage. Man there are bugs to find...

This commit is contained in:
Sascha Hauer 2008-03-10 23:56:47 +01:00
parent 38e5fc1735
commit 4dba16c692
1 changed files with 6 additions and 6 deletions

View File

@ -216,16 +216,16 @@ netboot_common (proto_t proto, cmd_tbl_t *cmdtp, int argc, char *argv[])
safe_strncpy (BootFile, remotefile, sizeof(BootFile));
if ((size = NetLoop(proto)) < 0)
return 1;
if ((size = NetLoop(proto)) < 0) {
rcode = size;
goto out;
}
/* NetLoop ok, update environment */
netboot_update_env();
/* done if no file was loaded (no errors though) */
if (size == 0)
return 0;
out:
close(net_store_fd);
return rcode;
}