diff options
author | Simo Sorce <simo@redhat.com> | 2015-03-21 14:00:17 -0400 |
---|---|---|
committer | Simo Sorce <simo@redhat.com> | 2015-03-21 14:31:31 -0400 |
commit | e623fb514e28081534d5b0de9817ae1b1b865930 (patch) | |
tree | b7645ae180fc18d47d292cf9221af6c83caef9b9 | |
parent | 5d5d6cb98a42a09d02b8427bfc70ba1e9505eb50 (diff) | |
download | gss-proxy-e623fb514e28081534d5b0de9817ae1b1b865930.tar.gz gss-proxy-e623fb514e28081534d5b0de9817ae1b1b865930.tar.xz gss-proxy-e623fb514e28081534d5b0de9817ae1b1b865930.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
-rw-r--r-- | proxy/src/gp_export.c | 6 |
1 files changed, 6 insertions, 0 deletions
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; |