summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2010-06-07 10:42:05 +0200
committerStephen Gallagher <sgallagh@redhat.com>2010-06-09 08:29:47 -0400
commitbe3cb9b976bd994b2cd6e0217e41892f46d174dd (patch)
treea79fcd1f09c3330609dbdcffce14f4a5a5ad63bf
parentf73b63be8337400ef9e9c73854e0068113faecf3 (diff)
downloadsssd-be3cb9b976bd994b2cd6e0217e41892f46d174dd.tar.gz
sssd-be3cb9b976bd994b2cd6e0217e41892f46d174dd.tar.xz
sssd-be3cb9b976bd994b2cd6e0217e41892f46d174dd.zip
Fix realm_str dereference
Fixes: #508
-rw-r--r--src/providers/ldap/sdap_child_helpers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/providers/ldap/sdap_child_helpers.c b/src/providers/ldap/sdap_child_helpers.c
index b45e4eae5..724de28da 100644
--- a/src/providers/ldap/sdap_child_helpers.c
+++ b/src/providers/ldap/sdap_child_helpers.c
@@ -190,7 +190,7 @@ static errno_t create_tgt_req_send_buffer(TALLOC_CTX *mem_ctx,
/* keytab */
if (keytab_name) {
SAFEALIGN_SET_UINT32(&buf->data[rp], strlen(keytab_name), &rp);
- safealign_memcpy(&buf->data[rp], keytab_name, strlen(realm_str), &rp);
+ safealign_memcpy(&buf->data[rp], keytab_name, strlen(keytab_name), &rp);
} else {
SAFEALIGN_SET_UINT32(&buf->data[rp], 0, &rp);
}