changeset 10926:0f7be8ada1ff

6892849 channel binding in audit_remote(5) should correctly specify the application_data structure member
author Jan Friedel <Jan.Friedel@Sun.COM>
date Mon, 02 Nov 2009 10:34:51 +0100
parents e98176a6237e
children ac35db8a7412
files usr/src/lib/auditd_plugins/remote/transport.c
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/lib/auditd_plugins/remote/transport.c	Mon Nov 02 10:34:45 2009 +0100
+++ b/usr/src/lib/auditd_plugins/remote/transport.c	Mon Nov 02 10:34:51 2009 +0100
@@ -306,7 +306,6 @@
 	gss_name_t				gss_name;
 	char					*gss_svc_name = "audit";
 	char					*svc_name;
-	size_t					ver_str_concat_len;
 	struct gss_channel_bindings_struct	input_chan_bindings;
 
 	/* GSS service name = gss_svc_name + "@" + remote hostname (fqdn) */
@@ -336,8 +335,7 @@
 	bzero(&input_chan_bindings, sizeof (input_chan_bindings));
 	input_chan_bindings.initiator_addrtype = GSS_C_AF_NULLADDR;
 	input_chan_bindings.acceptor_addrtype = GSS_C_AF_NULLADDR;
-	ver_str_concat_len = strlen(ver_str_concat) + 1;
-	input_chan_bindings.application_data.length = ver_str_concat_len;
+	input_chan_bindings.application_data.length = strlen(ver_str_concat);
 	input_chan_bindings.application_data.value = ver_str_concat;
 
 	(void) pthread_mutex_lock(&gss_ctx_lock);