summaryrefslogtreecommitdiff
path: root/source3/modules
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2008-10-13 14:12:43 -0700
committerJeremy Allison <jra@samba.org>2008-10-13 14:12:43 -0700
commit2a2f9400bf17d63f845f08a24988055118adc308 (patch)
treeeed207f4bf6602018dc5de1e8938b900fef3224c /source3/modules
parent3e1d6c60201a2514dc54b4992b034a954b330c65 (diff)
downloadsamba-2a2f9400bf17d63f845f08a24988055118adc308.tar.gz
samba-2a2f9400bf17d63f845f08a24988055118adc308.tar.bz2
samba-2a2f9400bf17d63f845f08a24988055118adc308.zip
Whitespace tidyup and an optimization to remove a talloc.
Jeremy.
Diffstat (limited to 'source3/modules')
-rw-r--r--source3/modules/vfs_smb_traffic_analyzer.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/source3/modules/vfs_smb_traffic_analyzer.c b/source3/modules/vfs_smb_traffic_analyzer.c
index be77fc49e0..9456afb811 100644
--- a/source3/modules/vfs_smb_traffic_analyzer.c
+++ b/source3/modules/vfs_smb_traffic_analyzer.c
@@ -182,24 +182,22 @@ static void smb_traffic_analyzer_send_data(vfs_handle_struct *handle,
seconds=(float) (tv.tv_usec / 1000);
/* check if anonymization is required */
-
+
anon_prefix=lp_parm_const_string(SNUM(handle->conn),"smb_traffic_analyzer",\
"anonymize_prefix", NULL );
if (anon_prefix!=NULL) {
username = talloc_asprintf(talloc_tos(),
"%s%i",
anon_prefix,
- str_checksum(
+ str_checksum(
handle->conn->server_info->sanitized_username ) );
} else {
- username = talloc_asprintf(talloc_tos(),
- "%s",
- handle->conn->server_info->sanitized_username);
- }
+ username = handle->conn->server_info->sanitized_username;
+ }
if (!username) {
return;
- }
+ }
str = talloc_asprintf(talloc_tos(),
"V1,%u,\"%s\",\"%s\",\"%c\",\"%s\",\"%s\","