]> git.ipfire.org Git - thirdparty/krb5.git/commit
Fix LDAP ticket policies on big-endian LP64 272/head
authorGreg Hudson <ghudson@mit.edu>
Mon, 13 Apr 2015 17:09:20 +0000 (13:09 -0400)
committerGreg Hudson <ghudson@mit.edu>
Tue, 14 Apr 2015 23:42:16 +0000 (19:42 -0400)
commit7fbc092107298bded216fbce4cff6592275bff03
tree7490fdb32db07d598a81f808a8403d5a81416929
parent327c12762ba3a66c06906246e6e0e33c1d65d1b2
Fix LDAP ticket policies on big-endian LP64

krb5_ldap_get_value() takes a pointer to int, and should not be passed
a pointer to any integral type which might have a different width.
Use an intermediate variable for each call.

The erroneous calls in ldap_misc.c were passing pointers to int32_t,
which is harmless on all common platforms.  The calls in
ldap_tkt_policy.c were passing pointers to long; on big-endian LP64
platforms, the result would be written to the high 32 bits of the long
value.

ticket: 8166
target_version: 1.13.2
tags: pullup
src/plugins/kdb/ldap/libkdb_ldap/ldap_misc.c
src/plugins/kdb/ldap/libkdb_ldap/ldap_tkt_policy.c