diff options
author | Matthew Newton <matthew-git@newtoncomputing.co.uk> | 2015-01-23 22:35:50 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2015-03-10 00:50:09 +0100 |
commit | 60c7571984d7f1612828a72fae3ed8e66037d1f7 (patch) | |
tree | 49ddc53ccfed28108490a40498931257f048dbd8 /source4/torture | |
parent | 95a6a892d9f50aced3d67e7b79e5ca2401134c38 (diff) | |
download | samba-60c7571984d7f1612828a72fae3ed8e66037d1f7.tar.gz |
Make winbind client library thread-safe by adding context
Rather than keep state in global variables, store the current
context such as the winbind file descriptor in a struct that is
passed in. This makes the winbind client library thread-safe.
Signed-off-by: Matthew Newton <matthew-git@newtoncomputing.co.uk>
Reviewed-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source4/torture')
-rw-r--r-- | source4/torture/winbind/struct_based.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/torture/winbind/struct_based.c b/source4/torture/winbind/struct_based.c index 0096fefcbbd..4d46693666b 100644 --- a/source4/torture/winbind/struct_based.c +++ b/source4/torture/winbind/struct_based.c @@ -29,7 +29,7 @@ #define DO_STRUCT_REQ_REP_EXT(op,req,rep,expected,strict,warnaction,cmt) do { \ NSS_STATUS __got, __expected = (expected); \ - __got = winbindd_request_response(op, req, rep); \ + __got = winbindd_request_response(NULL, op, req, rep); \ if (__got != __expected) { \ const char *__cmt = (cmt); \ if (strict) { \ |