summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-12-29 21:01:13 +0100
committerVolker Lendecke <vl@samba.org>2008-12-30 11:26:10 +0100
commit9957d5f3a0faa14a387de1ad4c8bcf88e3ada58a (patch)
tree4d577405791a47c928b892ca755b86576454373b /source3
parent12c9d7fa6f1d0fe20d71a5c57f009527620bdeb8 (diff)
downloadsamba-9957d5f3a0faa14a387de1ad4c8bcf88e3ada58a.tar.gz
samba-9957d5f3a0faa14a387de1ad4c8bcf88e3ada58a.tar.bz2
samba-9957d5f3a0faa14a387de1ad4c8bcf88e3ada58a.zip
Simplify is_partial_auth_vuid slightly
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/password.c6
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);
}
/****************************************************************************