From e623fb514e28081534d5b0de9817ae1b1b865930 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 --- proxy/src/gp_export.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/proxy/src/gp_export.c b/proxy/src/gp_export.c index 341ef0a..21b0e48 100644 --- a/proxy/src/gp_export.c +++ b/proxy/src/gp_export.c @@ -625,6 +625,12 @@ 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); + xdr_free((xdrproc_t)xdr_gssx_buffer, + (char *)&out->targ_name.exported_composite_name); break; default: ret_maj = GSS_S_FAILURE; -- cgit