diff options
author | Tim Potter <tpot@samba.org> | 2002-01-10 23:45:29 +0000 |
---|---|---|
committer | Tim Potter <tpot@samba.org> | 2002-01-10 23:45:29 +0000 |
commit | 85e06cebc018ce29cfd4788af857a376b13929e9 (patch) | |
tree | f6a2de0337fb8aeded9b286121d42ad39fc5f79c /source3/nsswitch/wb_common.c | |
parent | 969d1dd4683ddaf7a54db50f8d5a2b2ebcf13c51 (diff) | |
download | samba-85e06cebc018ce29cfd4788af857a376b13929e9.tar.gz samba-85e06cebc018ce29cfd4788af857a376b13929e9.tar.bz2 samba-85e06cebc018ce29cfd4788af857a376b13929e9.zip |
Since AB has been changing the winbind interface it's time to add the "mock
swedish" test to client calls. This is putting a length field at the
start of a request so we can disconnect clients talking with an out of date
libnss_winbind.so rather than deadlock them.
Misc cleanups:
- made some int values uint32
- moved WINBIND_INTERFACE_VERSION to start of cmd list
(This used to be commit a4af65b9b93671f13f277d49279a85042a8fd1d5)
Diffstat (limited to 'source3/nsswitch/wb_common.c')
-rw-r--r-- | source3/nsswitch/wb_common.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/nsswitch/wb_common.c b/source3/nsswitch/wb_common.c index d3feaeb450..58b18ec458 100644 --- a/source3/nsswitch/wb_common.c +++ b/source3/nsswitch/wb_common.c @@ -58,6 +58,8 @@ void init_request(struct winbindd_request *request, int request_type) static char *domain_env; static BOOL initialised; + request->length = sizeof(struct winbindd_request); + request->cmd = (enum winbindd_cmd)request_type; request->pid = getpid(); request->domain[0] = '\0'; |