summaryrefslogtreecommitdiffstats
path: root/src/python
diff options
context:
space:
mode:
authorPavel Březina <pbrezina@redhat.com>2016-10-05 13:38:20 +0200
committerLukas Slebodnik <lslebodn@redhat.com>2016-12-19 23:24:41 +0100
commit0713b92ec9f10b6dd913dc56cbc7845d1b025ccb (patch)
treee725d328c1e2d32a72b3ebea2cde9b0ddb56a081 /src/python
parent2d12aae08aff6c17c1edb107a204c54d9acfe08d (diff)
downloadsssd-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