summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2015-03-21 14:00:17 -0400
committerSimo Sorce <simo@redhat.com>2015-03-24 13:57:04 -0400
commit88ac58751887074f76b3aaa7e4338abe69e11a23 (patch)
tree5ef5f9dc79a7da4f00e6584a0520cf51085a5929
parentab69b71fcf9187269058b4e1ff7b394cc37f19da (diff)
downloadgss-proxy-88ac58751887074f76b3aaa7e4338abe69e11a23.tar.gz
gss-proxy-88ac58751887074f76b3aaa7e4338abe69e11a23.tar.xz
gss-proxy-88ac58751887074f76b3aaa7e4338abe69e11a23.zip
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 <simo@redhat.com> Reviewed-by: Nathaniel McCallum <npmccallum@redhat.com>
-rw-r--r--proxy/src/gp_export.c10
1 files changed, 10 insertions, 0 deletions
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;