summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2016-11-17 15:44:13 +0100
committerKarolin Seeger <kseeger@samba.org>2016-11-30 12:19:32 +0100
commit3ff0d4aa9d287401206b001ba8619859eddb43ae (patch)
tree5f65701d5f6ac1a8878749fc391d57496c8eaf01
parent0f1b2b85407bf0066615d599d346234aee3243ca (diff)
downloadsamba-3ff0d4aa9d287401206b001ba8619859eddb43ae.tar.gz
s4:torture: Normalizes names in session_key test
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12433 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> (cherry picked from commit 31d21de548d899f82fa7944767ad94e8aca8d96d)
-rw-r--r--source4/torture/rpc/session_key.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/torture/rpc/session_key.c b/source4/torture/rpc/session_key.c
index b460036f2b9..7ddc339ee68 100644
--- a/source4/torture/rpc/session_key.c
+++ b/source4/torture/rpc/session_key.c
@@ -53,7 +53,7 @@ static bool test_CreateSecret_basic(struct dcerpc_pipe *p,
char *secname;
struct dcerpc_binding_handle *b = p->binding_handle;
- secname = talloc_asprintf(tctx, "torturesecret-%u", (unsigned int)random());
+ secname = talloc_asprintf(tctx, "torturesecret-%08x", (unsigned int)random());
torture_comment(tctx, "Testing CreateSecret of %s\n", secname);