diff options
author | Pavel Březina <pbrezina@redhat.com> | 2013-01-22 14:31:37 +0100 |
---|---|---|
committer | Jakub Hrozek <jhrozek@redhat.com> | 2013-01-22 18:21:39 +0100 |
commit | 5ff1c3c5a12930692cb6284d14f7fda3a974af8e (patch) | |
tree | 68f7d53b9fb9054bb20a58e052634e6b96a98f4a /src/responder/sudo/sudosrv_cmd.c | |
parent | 1d262e93850e2be65a774da070600947f1b75153 (diff) | |
download | sssd-5ff1c3c5a12930692cb6284d14f7fda3a974af8e.tar.gz sssd-5ff1c3c5a12930692cb6284d14f7fda3a974af8e.tar.xz sssd-5ff1c3c5a12930692cb6284d14f7fda3a974af8e.zip |
sudo responder: change num_rules type from size_t to uint32_t
https://fedorahosted.org/sssd/ticket/1779
2^32 should be enough to store sudo rules. size_t type was causing
troubles on big endian architectures, because it wasn't used
correctly in combination with D-Bus.
Diffstat (limited to 'src/responder/sudo/sudosrv_cmd.c')
-rw-r--r-- | src/responder/sudo/sudosrv_cmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/responder/sudo/sudosrv_cmd.c b/src/responder/sudo/sudosrv_cmd.c index 9ad1be42b..ee25b53d1 100644 --- a/src/responder/sudo/sudosrv_cmd.c +++ b/src/responder/sudo/sudosrv_cmd.c @@ -98,7 +98,7 @@ errno_t sudosrv_cmd_done(struct sudo_cmd_ctx *cmd_ctx, int ret) { uint8_t *response_body = NULL; size_t response_len = 0; - size_t num_rules = cmd_ctx->num_rules; + uint32_t num_rules = cmd_ctx->num_rules; struct sysdb_attrs **rules = cmd_ctx->rules; switch (ret) { |