Skip to content

Commit 88ac587

Browse files
committed
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 <[email protected]> Reviewed-by: Nathaniel McCallum <[email protected]>
1 parent ab69b71 commit 88ac587

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

proxy/src/gp_export.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -625,6 +625,16 @@ uint32_t gp_export_ctx_id_to_gssx(uint32_t *min, int type, gss_OID mech,
625625
if (ret_maj) {
626626
goto done;
627627
}
628+
/* suppress names exported_composite_name, the kernel doesn't want
629+
* this information */
630+
xdr_free((xdrproc_t)xdr_gssx_buffer,
631+
(char *)&out->src_name.exported_composite_name);
632+
memset(&out->src_name.exported_composite_name, 0,
633+
sizeof(out->src_name.exported_composite_name));
634+
xdr_free((xdrproc_t)xdr_gssx_buffer,
635+
(char *)&out->targ_name.exported_composite_name);
636+
memset(&out->targ_name.exported_composite_name, 0,
637+
sizeof(out->targ_name.exported_composite_name));
628638
break;
629639
default:
630640
ret_maj = GSS_S_FAILURE;

0 commit comments

Comments
 (0)