diff options
author | bp <bp@FreeBSD.org> | 2002-09-18 07:43:21 +0000 |
---|---|---|
committer | bp <bp@FreeBSD.org> | 2002-09-18 07:43:21 +0000 |
commit | 79c675698990deafd9430eee2560cdec49a04b4d (patch) | |
tree | a875ac54cc33c09adeca4d9e389af81064a3ce30 /sys/netsmb | |
parent | 549a16a759511d5c6bcff7ab98c0a91f7810dfc8 (diff) | |
download | FreeBSD-src-79c675698990deafd9430eee2560cdec49a04b4d.zip FreeBSD-src-79c675698990deafd9430eee2560cdec49a04b4d.tar.gz |
Permit an empty username which is useful for browsing.
Diffstat (limited to 'sys/netsmb')
-rw-r--r-- | sys/netsmb/smb_usr.c | 4 |
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) { |