summaryrefslogtreecommitdiffstats
path: root/src/python/pysss_nss_idmap.c
diff options
context:
space:
mode:
authorLukas Slebodnik <lslebodn@redhat.com>2016-07-01 22:27:24 +0200
committerJakub Hrozek <jhrozek@redhat.com>2016-07-06 17:27:30 +0200
commit5d0d0f8067fb53285a38fe978cfa36dbeb53be9b (patch)
tree5b433b934ea4d6505a705e164073b9d637217fa2 /src/python/pysss_nss_idmap.c
parentc7c1941f9045531044121520fc2ca0e048732c25 (diff)
downloadsssd-5d0d0f8067fb53285a38fe978cfa36dbeb53be9b.tar.gz
sssd-5d0d0f8067fb53285a38fe978cfa36dbeb53be9b.tar.xz
sssd-5d0d0f8067fb53285a38fe978cfa36dbeb53be9b.zip
sysdb: Use ldb_result as output in sysdb_search_ts_{users,groups}
Passing address of unsigned to the output argument size_t causes access out of boundaries for type unsigned and and wrong data on big endian. It looks like functions sysdb_search_ts_{users,groups} need to store results in structure ldb_result anyway for further processing. Therefore it will be better to convert output arguments size_t* + ldb_message*** into structure ldb_result and avoid using additional helper variable with type size_t before each invocation of these functions. Reviewed-by: Sumit Bose <sbose@redhat.com>
Diffstat (limited to 'src/python/pysss_nss_idmap.c')
0 files changed, 0 insertions, 0 deletions