mirror of
https://github.com/samba-team/samba.git
synced 2025-03-29 02:50:28 +03:00
nsswitch: Cleanup code in parse_wbinfo_domain_user().
Found by Coverity. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Günther Deschner <gd@samba.org>
This commit is contained in:
parent
af18339e03
commit
b8ed2efb50
@ -121,7 +121,8 @@ static bool parse_wbinfo_domain_user(const char *domuser, fstring domain,
|
||||
|
||||
if (!p) {
|
||||
/* Maybe it was a UPN? */
|
||||
if ((p = strchr(domuser, '@')) != NULL) {
|
||||
p = strchr(domuser, '@');
|
||||
if (p != NULL) {
|
||||
fstrcpy(domain, "");
|
||||
fstrcpy(user, domuser);
|
||||
return true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user