Permit an empty username which is useful for browsing.

This commit is contained in:
bp 2002-09-18 07:43:21 +00:00
parent 549a16a759
commit 79c6756989

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