diff options
| author | Lukas Slebodnik <lslebodn@redhat.com> | 2016-07-01 22:27:24 +0200 |
|---|---|---|
| committer | Jakub Hrozek <jhrozek@redhat.com> | 2016-07-06 17:27:30 +0200 |
| commit | 5d0d0f8067fb53285a38fe978cfa36dbeb53be9b (patch) | |
| tree | 5b433b934ea4d6505a705e164073b9d637217fa2 /src/python/pyhbac.c | |
| parent | c7c1941f9045531044121520fc2ca0e048732c25 (diff) | |
| download | sssd-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/pyhbac.c')
0 files changed, 0 insertions, 0 deletions
