Permit an empty username which is useful for browsing.

This commit is contained in:
Boris Popov 2002-09-18 07:43:21 +00:00
parent 3c30400408
commit 994ad1809e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=103529

View File

@ -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) {