From 88ac58751887074f76b3aaa7e4338abe69e11a23 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Sat, 21 Mar 2015 14:00:17 -0400 Subject: Suppress exported_composite_name for the kernel The kernel makes no use of this data, and ita causes allocation issues in some cases with waste of space on the kernel side. Fixes: https://fedorahosted.org/gss-proxy/ticket/129 Signed-off-by: Simo Sorce Reviewed-by: Nathaniel McCallum --- proxy/src/gp_export.c | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'proxy/src') diff --git a/proxy/src/gp_export.c b/proxy/src/gp_export.c index 341ef0a..110f1a9 100644 --- a/proxy/src/gp_export.c +++ b/proxy/src/gp_export.c @@ -625,6 +625,16 @@ export: if (ret_maj) { goto done; } + /* suppress names exported_composite_name, the kernel doesn't want + * this information */ + xdr_free((xdrproc_t)xdr_gssx_buffer, + (char *)&out->src_name.exported_composite_name); + memset(&out->src_name.exported_composite_name, 0, + sizeof(out->src_name.exported_composite_name)); + xdr_free((xdrproc_t)xdr_gssx_buffer, + (char *)&out->targ_name.exported_composite_name); + memset(&out->targ_name.exported_composite_name, 0, + sizeof(out->targ_name.exported_composite_name)); break; default: ret_maj = GSS_S_FAILURE; -- cgit