[PATCH] svcrpc: gss: server context init failure handling
authorKevin Coffman <kwc@citi.umich.edu>
Thu, 19 Jan 2006 01:43:25 +0000 (17:43 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Thu, 19 Jan 2006 03:20:25 +0000 (19:20 -0800)
commit91a4762e0ab0880fa00e8f0b7a052e4929d867a6
tree994b9183eddb0b5c2e14d43c522a16528a297dd6
parent822f1005ae1f3a4a8b136f38a6933d3f719f4c4a
[PATCH] svcrpc: gss: server context init failure handling

We require the server's gssd to create a completed context before asking the
kernel to send a final context init reply.  However, gssd could be buggy, or
under some bizarre circumstances we might purge the context from our cache
before we get the chance to use it here.

Handle this case by returning GSS_S_NO_CONTEXT to the client.

Also move the relevant code here to a separate function rather than nesting
excessively.

Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu>
Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
net/sunrpc/auth_gss/svcauth_gss.c