diff options
author | J. Bruce Fields <bfields@citi.umich.edu> | 2006-01-18 17:43:26 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-18 19:20:25 -0800 |
commit | 5fb8b49e2955cc473929c5994b8389111daed59d (patch) | |
tree | 49f9baa70e18a42f0be0643c8334a6e9c3f46a73 /net/sunrpc/auth_gss/svcauth_gss.c | |
parent | 91a4762e0ab0880fa00e8f0b7a052e4929d867a6 (diff) | |
download | kernel_samsung_aries-5fb8b49e2955cc473929c5994b8389111daed59d.zip kernel_samsung_aries-5fb8b49e2955cc473929c5994b8389111daed59d.tar.gz kernel_samsung_aries-5fb8b49e2955cc473929c5994b8389111daed59d.tar.bz2 |
[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>
Diffstat (limited to 'net/sunrpc/auth_gss/svcauth_gss.c')
-rw-r--r-- | net/sunrpc/auth_gss/svcauth_gss.c | 3 |
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 fdad66d..23632d8 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, gss_mech_put(gm); goto out; } - if (gss_import_sec_context(buf, len, gm, &rsci.mechctx)) { + status = gss_import_sec_context(buf, len, gm, &rsci.mechctx); + if (status) { gss_mech_put(gm); goto out; } |