aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJ. Bruce Fields <bfields@citi.umich.edu>2006-01-18 20:43:26 -0500
committerLinus Torvalds <torvalds@g5.osdl.org>2006-01-18 22:20:25 -0500
commit5fb8b49e2955cc473929c5994b8389111daed59d (patch)
tree49f9baa70e18a42f0be0643c8334a6e9c3f46a73
parent91a4762e0ab0880fa00e8f0b7a052e4929d867a6 (diff)
[PATCH] svcrpc: gss: svc context creation error handling
Allow mechanisms to return more varied errors on the context creation downcall. 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>
-rw-r--r--net/sunrpc/auth_gss/svcauth_gss.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/sunrpc/auth_gss/svcauth_gss.c b/net/sunrpc/auth_gss/svcauth_gss.c
index fdad66dc9a9f..23632d84d8d7 100644
--- a/net/sunrpc/auth_gss/svcauth_gss.c
+++ b/net/sunrpc/auth_gss/svcauth_gss.c
@@ -420,7 +420,8 @@ static int rsc_parse(struct cache_detail *cd,
420 gss_mech_put(gm); 420 gss_mech_put(gm);
421 goto out; 421 goto out;
422 } 422 }
423 if (gss_import_sec_context(buf, len, gm, &rsci.mechctx)) { 423 status = gss_import_sec_context(buf, len, gm, &rsci.mechctx);
424 if (status) {
424 gss_mech_put(gm); 425 gss_mech_put(gm);
425 goto out; 426 goto out;
426 } 427 }