mirror of
https://github.com/samba-team/samba.git
synced 2025-03-27 22:50:26 +03:00
s3: add failure check.
Signed-off-by: Bo Yang <boyang@samba.org>
This commit is contained in:
parent
ffbcf3b491
commit
f394fa7766
@ -2298,9 +2298,12 @@ static char* winbind_upn_to_username(struct pwb_context *ctx,
|
||||
}
|
||||
|
||||
name = talloc_strdup(ctx, upn);
|
||||
if (!name) {
|
||||
return NULL;
|
||||
}
|
||||
if ((p = strchr(name, '@')) != NULL) {
|
||||
*p = 0;
|
||||
domain = talloc_strdup(ctx, p + 1);
|
||||
domain = p + 1;
|
||||
}
|
||||
|
||||
/* Convert the UPN to a SID */
|
||||
|
Loading…
x
Reference in New Issue
Block a user