Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1eb6d622 authored by Wei Yongjun's avatar Wei Yongjun Committed by J. Bruce Fields
Browse files

svcauth_gss: fix error return code in rsc_parse()



Fix to return a negative error code from the error handling
case instead of 0, as returned elsewhere in this function.

Signed-off-by: default avatarWei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
parent 2a6cf944
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -506,9 +506,11 @@ static int rsc_parse(struct cache_detail *cd,
		len = qword_get(&mesg, buf, mlen);
		if (len > 0) {
			rsci.cred.cr_principal = kstrdup(buf, GFP_KERNEL);
			if (!rsci.cred.cr_principal)
			if (!rsci.cred.cr_principal) {
				status = -ENOMEM;
				goto out;
			}
		}

	}
	rsci.h.expiry_time = expiry;