summaryrefslogtreecommitdiffstats
path: root/sys/netsmb
diff options
context:
space:
mode:
Diffstat (limited to 'sys/netsmb')
-rw-r--r--sys/netsmb/smb_usr.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/netsmb/smb_usr.c b/sys/netsmb/smb_usr.c
index 2759173..9c5f7bb 100644
--- a/sys/netsmb/smb_usr.c
+++ b/sys/netsmb/smb_usr.c
@@ -61,8 +61,12 @@ smb_usr_vc2spec(struct smbioc_ossn *dp, struct smb_vcspec *spec)
int flags = 0;
bzero(spec, sizeof(*spec));
+
+#ifdef NETSMB_NO_ANON_USER
if (dp->ioc_user[0] == 0)
return EINVAL;
+#endif
+
if (dp->ioc_server == NULL)
return EINVAL;
if (dp->ioc_localcs[0] == 0) {
OpenPOWER on IntegriCloud