On a socket creation error, don't close the socket.
This commit is contained in:
parent
64dd44ce61
commit
d5ee1a976b
@ -600,7 +600,7 @@ bootpc_call(struct bootpc_globalcontext *gctx, struct thread *td)
|
||||
*/
|
||||
error = socreate(AF_INET, &so, SOCK_DGRAM, 0, td->td_ucred, td);
|
||||
if (error != 0)
|
||||
goto out;
|
||||
goto out0;
|
||||
|
||||
tv.tv_sec = 1;
|
||||
tv.tv_usec = 0;
|
||||
@ -969,6 +969,7 @@ bootpc_call(struct bootpc_globalcontext *gctx, struct thread *td)
|
||||
gotreply:
|
||||
out:
|
||||
soclose(so);
|
||||
out0:
|
||||
return error;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user