svcrpc: fix gss-proxy NULL dereference in some error cases
authorJ. Bruce Fields <bfields@redhat.com>
Tue, 8 Oct 2013 19:33:53 +0000 (15:33 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Tue, 8 Oct 2013 19:56:15 +0000 (15:56 -0400)
commitc66080ad0a9295eaf0246a46949619f92c75faaa
tree38fd10d01b9c74b988d86dccffa2ddbfc46fb22d
parent97e47fa11deae10ae72aa1109e700565c57152f5
svcrpc: fix gss-proxy NULL dereference in some error cases

We depend on the xdr decoder to set this pointer, but if we error out
before we decode this piece it could be left NULL.

I think this is probably tough to hit without a buggy gss-proxy.

Reported-by: Andi Kleen <andi@firstfloor.org>
Cc: Simo Sorce <simo@redhat.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
net/sunrpc/auth_gss/gss_rpc_upcall.c