rpc: remove some BUG()s
authorJ. Bruce Fields <bfields@redhat.com>
Tue, 24 Oct 2017 18:58:11 +0000 (14:58 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Tue, 7 Nov 2017 21:44:01 +0000 (16:44 -0500)
commit1754eb2b27d7a58e5b9038c6297a1e7bbff4ed52
treefbd4cff1d47017723011b408152a577d24b9880b
parent0bad47cada5defba13e98827d22d06f13258dfb3
rpc: remove some BUG()s

It would be kinder to WARN() and recover in several spots here instead
of BUG()ing.

Also, it looks like the read_u32_from_xdr_buf() call could actually
fail, though it might require a broken (or malicious) client, so convert
that to just an error return.

Reported-by: Weston Andros Adamson <dros@monkey.org>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
net/sunrpc/auth_gss/svcauth_gss.c