diff options
author | Volker Lendecke <vl@samba.org> | 2008-12-29 21:01:13 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2008-12-30 11:26:10 +0100 |
commit | 9957d5f3a0faa14a387de1ad4c8bcf88e3ada58a (patch) | |
tree | 4d577405791a47c928b892ca755b86576454373b /source3/smbd | |
parent | 12c9d7fa6f1d0fe20d71a5c57f009527620bdeb8 (diff) | |
download | samba-9957d5f3a0faa14a387de1ad4c8bcf88e3ada58a.tar.gz samba-9957d5f3a0faa14a387de1ad4c8bcf88e3ada58a.tar.bz2 samba-9957d5f3a0faa14a387de1ad4c8bcf88e3ada58a.zip |
Simplify is_partial_auth_vuid slightly
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/password.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/source3/smbd/password.c b/source3/smbd/password.c index 11b19d373e..1ad98438ef 100644 --- a/source3/smbd/password.c +++ b/source3/smbd/password.c @@ -82,11 +82,7 @@ user_struct *get_valid_user_struct(uint16 vuid) bool is_partial_auth_vuid(uint16 vuid) { - if (vuid == UID_FIELD_INVALID) { - return False; - } - return get_valid_user_struct_internal(vuid, - SERVER_ALLOCATED_REQUIRED_NO) ? True : False; + return (get_partial_auth_user_struct(vuid) != NULL); } /**************************************************************************** |