diff options
author | hsu <hsu@FreeBSD.org> | 2003-06-09 03:44:34 +0000 |
---|---|---|
committer | hsu <hsu@FreeBSD.org> | 2003-06-09 03:44:34 +0000 |
commit | d5ee1a976b89d1593d64b1671f9b34155b9436ae (patch) | |
tree | 4fdf3da9ba52b820287e721c9137a0c798a838bd | |
parent | 64dd44ce61ce3216e321e02b38071f7a0e42aff6 (diff) | |
download | FreeBSD-src-d5ee1a976b89d1593d64b1671f9b34155b9436ae.zip FreeBSD-src-d5ee1a976b89d1593d64b1671f9b34155b9436ae.tar.gz |
On a socket creation error, don't close the socket.
-rw-r--r-- | sys/nfsclient/bootp_subr.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/nfsclient/bootp_subr.c b/sys/nfsclient/bootp_subr.c index 903aee0..ee1e824 100644 --- a/sys/nfsclient/bootp_subr.c +++ b/sys/nfsclient/bootp_subr.c @@ -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; } |