Skip to content

Commit

Permalink
[PATCH] svcrpc: gss: svc context creation error handling
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
J. Bruce Fields authored and Linus Torvalds committed Jan 19, 2006
1 parent 91a4762 commit 5fb8b49
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion net/sunrpc/auth_gss/svcauth_gss.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 5fb8b49

Please sign in to comment.