summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
}
/****************************************************************************