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

Commit 3be34555 authored by J. Bruce Fields's avatar J. Bruce Fields
Browse files

svcrpc: fix error-handling on badd gssproxy downcall



For every other problem here we bail out with an error, but here for
some reason we're setting a negative cache entry (with, note, an
undefined expiry).

It seems simplest just to bail out in the same way as we do in other
cases.

Cc: Simo Sorce <simo@redhat.com>
Reported-by: default avatarAndi Kleen <andi@firstfloor.org>
Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
parent c66080ad
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1167,8 +1167,8 @@ static int gss_proxy_save_rsc(struct cache_detail *cd,
	if (!ud->found_creds) {
		/* userspace seem buggy, we should always get at least a
		 * mapping to nobody */
		dprintk("RPC:       No creds found, marking Negative!\n");
		set_bit(CACHE_NEGATIVE, &rsci.h.flags);
		dprintk("RPC:       No creds found!\n");
		goto out;
	} else {

		/* steal creds */