diff options
author | Jakub Hrozek <jhrozek@redhat.com> | 2012-07-10 15:06:20 +0200 |
---|---|---|
committer | Stephen Gallagher <sgallagh@redhat.com> | 2012-07-10 09:30:57 -0400 |
commit | 951a2082ba1bfe2fec59b06b1f3fdf424d9d75c2 (patch) | |
tree | 705d3677ea2cfb7a9887377d6d8171a74f051ff0 /src/providers | |
parent | bd71f19d41272ea8b6dd92c9dc8e101d24eb7cc9 (diff) | |
download | sssd-951a2082ba1bfe2fec59b06b1f3fdf424d9d75c2.tar.gz sssd-951a2082ba1bfe2fec59b06b1f3fdf424d9d75c2.tar.bz2 sssd-951a2082ba1bfe2fec59b06b1f3fdf424d9d75c2.zip |
Print based on pointer contents not address
Diffstat (limited to 'src/providers')
-rw-r--r-- | src/providers/krb5/krb5_child.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/providers/krb5/krb5_child.c b/src/providers/krb5/krb5_child.c index f647bf79..8cf62555 100644 --- a/src/providers/krb5/krb5_child.c +++ b/src/providers/krb5/krb5_child.c @@ -1329,6 +1329,8 @@ static errno_t unpack_buffer(uint8_t *buf, size_t size, struct pam_data *pd, DEBUG(SSSDBG_TRACE_LIBS, ("total buffer size: [%d]\n", size)); + if (!offline || !kr) return EINVAL; + SAFEALIGN_COPY_UINT32_CHECK(&pd->cmd, buf + p, size, &p); SAFEALIGN_COPY_UINT32_CHECK(&kr->uid, buf + p, size, &p); SAFEALIGN_COPY_UINT32_CHECK(&kr->gid, buf + p, size, &p); @@ -1344,7 +1346,7 @@ static errno_t unpack_buffer(uint8_t *buf, size_t size, struct pam_data *pd, DEBUG(SSSDBG_CONF_SETTINGS, ("cmd [%d] uid [%llu] gid [%llu] validate [%s] offline [%s] " "UPN [%s]\n", pd->cmd, kr->uid, kr->gid, - kr->validate ? "true" : "false", offline ? "true" : "false", + kr->validate ? "true" : "false", *offline ? "true" : "false", kr->upn ? kr->upn : "none")); if (pd->cmd == SSS_PAM_AUTHENTICATE || |