summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2013-01-16 07:56:43 -0500
committerJakub Hrozek <jhrozek@redhat.com>2013-01-16 15:28:42 +0100
commit06d5f27d9f7e211a9316f7f3d3706d99f378acfe (patch)
treef6519604e08bb6cab537857495bda9a6eb604613 /src
parent1a54e022351a60fbfa619ef7ed6138fb892ad11a (diff)
downloadsssd-06d5f27d9f7e211a9316f7f3d3706d99f378acfe.tar.gz
sssd-06d5f27d9f7e211a9316f7f3d3706d99f378acfe.tar.bz2
sssd-06d5f27d9f7e211a9316f7f3d3706d99f378acfe.zip
Correct format security for talloc_named of auth tokens
Diffstat (limited to 'src')
-rw-r--r--src/util/authtok.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/authtok.c b/src/util/authtok.c
index 684b0762..1c54d04c 100644
--- a/src/util/authtok.c
+++ b/src/util/authtok.c
@@ -101,7 +101,7 @@ static errno_t sss_authtok_set_string(TALLOC_CTX *mem_ctx,
size = len + 1;
- tok->data = talloc_named(mem_ctx, size, context_name);
+ tok->data = talloc_named(mem_ctx, size, "%s", context_name);
if (!tok->data) {
return ENOMEM;
}