summaryrefslogtreecommitdiffstats
path: root/source4
diff options
context:
space:
mode:
authorMatthew Newton <matthew-git@newtoncomputing.co.uk>2015-01-23 22:35:50 +0000
committerJeremy Allison <jra@samba.org>2015-03-10 00:50:09 +0100
commit60c7571984d7f1612828a72fae3ed8e66037d1f7 (patch)
tree49ddc53ccfed28108490a40498931257f048dbd8 /source4
parent95a6a892d9f50aced3d67e7b79e5ca2401134c38 (diff)
downloadsamba-60c7571984d7f1612828a72fae3ed8e66037d1f7.tar.gz
samba-60c7571984d7f1612828a72fae3ed8e66037d1f7.tar.xz
samba-60c7571984d7f1612828a72fae3ed8e66037d1f7.zip
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')
-rw-r--r--source4/torture/winbind/struct_based.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/torture/winbind/struct_based.c b/source4/torture/winbind/struct_based.c
index 0096fefcbb..4d46693666 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) { \