summaryrefslogtreecommitdiff
path: root/usr
diff options
context:
space:
mode:
authorGordon Ross <gwr@nexenta.com>2019-06-27 22:14:38 -0400
committerGordon Ross <gwr@nexenta.com>2019-10-19 09:02:48 -0400
commit2a2a3aab3979d4b28c1b624aa75f71cad72c4220 (patch)
tree0ea175c1559616b4b8f36b95024f00acefdbbaa4 /usr
parent2dbda4a27c92d363997a5a840671e69167b33865 (diff)
downloadillumos-joyent-2a2a3aab3979d4b28c1b624aa75f71cad72c4220.tar.gz
11834 SMB authentication service stops after flood
Reviewed by: Roman Strashkin <roman.strashkin@nexenta.com> Reviewed by: Evan Layton <evan.layton@nexenta.com> Reviewed by: Matt Barden <matt.barden@nexenta.com> Reviewed by: Andy Stormont <AStormont@racktopsystems.com> Approved by: Robert Mustacchi <rm@fingolfin.org>
Diffstat (limited to 'usr')
-rw-r--r--usr/src/cmd/smbsrv/smbd/smbd_authsvc.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr/src/cmd/smbsrv/smbd/smbd_authsvc.c b/usr/src/cmd/smbsrv/smbd/smbd_authsvc.c
index c4535f8c06..01e50671bb 100644
--- a/usr/src/cmd/smbsrv/smbd/smbd_authsvc.c
+++ b/usr/src/cmd/smbsrv/smbd/smbd_authsvc.c
@@ -276,7 +276,7 @@ smbd_authsvc_listen(void *arg)
smbd_authsvc_thrcnt--;
(void) mutex_unlock(&smbd_authsvc_mutex);
(void) close(ns);
- goto out;
+ continue;
}
ctx->ctx_socket = ns;
@@ -287,9 +287,8 @@ smbd_authsvc_listen(void *arg)
smbd_authsvc_thrcnt--;
(void) mutex_unlock(&smbd_authsvc_mutex);
smbd_authctx_destroy(ctx);
- goto out;
}
- ctx = NULL; /* given to the new thread */
+ ctx = NULL; /* given to the new thread or destroyed */
}
out: