1
0
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:
Bo Yang 2009-07-18 14:07:33 +08:00
parent ffbcf3b491
commit f394fa7766

View File

@ -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 */