diff options
| author | Pavel Březina <pbrezina@redhat.com> | 2016-10-05 13:38:20 +0200 |
|---|---|---|
| committer | Lukas Slebodnik <lslebodn@redhat.com> | 2016-12-19 23:24:41 +0100 |
| commit | 0713b92ec9f10b6dd913dc56cbc7845d1b025ccb (patch) | |
| tree | e725d328c1e2d32a72b3ebea2cde9b0ddb56a081 /src/python | |
| parent | 2d12aae08aff6c17c1edb107a204c54d9acfe08d (diff) | |
| download | sssd-0713b92ec9f10b6dd913dc56cbc7845d1b025ccb.tar.gz sssd-0713b92ec9f10b6dd913dc56cbc7845d1b025ccb.tar.xz sssd-0713b92ec9f10b6dd913dc56cbc7845d1b025ccb.zip | |
responders: unify usage of sss_cmd_send_empty and _error
Originally sss_cmd_send_empty() called also sss_cmd_done() to send
an empty reply packet to the cliant where as sss_cmd_send_error()
did not invoke this call and required the caller to call it manually.
For this reason, a possible error in users_find_by_cert_done() was not
send to the caller.
This patch unifies the usage of those two functions in a way that both
of them only creates the reply packet but do not send it. Another
sss_cmd_done() call is required to send the reply.
Because sss_cmd_done() is now always called, unit tests needed to be
changed to always mock a value for __wrap_sss_cmd_done.
Resolves:
https://fedorahosted.org/sssd/ticket/3151
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>
Diffstat (limited to 'src/python')
0 files changed, 0 insertions, 0 deletions
