提交 5fb8b49e 编写于 作者: J J. Bruce Fields 提交者: Linus Torvalds

[PATCH] svcrpc: gss: svc context creation error handling

Allow mechanisms to return more varied errors on the context creation
downcall.
Signed-off-by: NJ. Bruce Fields <bfields@citi.umich.edu>
Signed-off-by: NNeil Brown <neilb@suse.de>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 91a4762e
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册