1
0
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:
Andreas Schneider 2012-12-06 15:14:07 +01:00 committed by Günther Deschner
parent af18339e03
commit b8ed2efb50

View File

@ -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;