diff options
author | Andrew Bartlett <abartlet@samba.org> | 2014-04-07 14:06:21 +1200 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2014-04-08 12:53:13 +0200 |
commit | 9d91f01b7be7c2bae9799d1d34fb75f8cdf23290 (patch) | |
tree | f82e28638bdcf63c4a733a41153393d5f9e86648 /source4/libcli | |
parent | 01de7818def1367fd55d8fbd80432c5a02c3e1f6 (diff) | |
download | samba-9d91f01b7be7c2bae9799d1d34fb75f8cdf23290.tar.gz |
s4-wbclient: Cope with winbind returning an error
Change-Id: I8eaf858f9e9e55eec20aa2c585db5459fb73b887
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Tue Apr 8 12:53:13 CEST 2014 on sn-devel-104
Diffstat (limited to 'source4/libcli')
-rw-r--r-- | source4/libcli/wbclient/wbclient.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/libcli/wbclient/wbclient.c b/source4/libcli/wbclient/wbclient.c index 165333a6b58..b5183be121b 100644 --- a/source4/libcli/wbclient/wbclient.c +++ b/source4/libcli/wbclient/wbclient.c @@ -155,6 +155,10 @@ NTSTATUS wbc_sids_to_xids(struct tevent_context *ev, struct id_map *ids, close(fd); + if (resp->result != WINBINDD_OK || p == NULL) { + return NT_STATUS_INTERNAL_ERROR; + } + p = resp->extra_data.data; for (i=0; i<count; i++) { |