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 | |
parent | 91a4762e0ab0880fa00e8f0b7a052e4929d867a6 (diff) | |
download | kernel-common-5fb8b49e2955cc473929c5994b8389111daed59d.tar.gz kernel-common-5fb8b49e2955cc473929c5994b8389111daed59d.tar.bz2 kernel-common-5fb8b49e2955cc473929c5994b8389111daed59d.zip |
[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')
-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 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, 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; } |