diff options
author | Derrell Lipman <derrell.lipman@unwireduniverse.com> | 2008-03-17 11:34:25 -0400 |
---|---|---|
committer | Derrell Lipman <derrell.lipman@unwireduniverse.com> | 2008-03-17 11:34:25 -0400 |
commit | 8b0783072aad83f5a2ce10737ca9d3077af95bf9 (patch) | |
tree | eb282d3e5e048e6f173c4873070f256d69326fe7 /source3/libsmb/libsmb_context.c | |
parent | 3ff8a21ca32ee6f800a94ecf00e6020105ad19c9 (diff) | |
download | samba-8b0783072aad83f5a2ce10737ca9d3077af95bf9.tar.gz samba-8b0783072aad83f5a2ce10737ca9d3077af95bf9.tar.bz2 samba-8b0783072aad83f5a2ce10737ca9d3077af95bf9.zip |
Fix use of AuthDataWithContext capability
During my initial plans for, and the subsequent discussion of a more
significant change to the API for libsmbclient, I had removed the
AuthDataWithContext usage, in favor of a more generalized planned interface.
When the API returned to its original state, I neglected to reinsert this
code.
Use of an authentication function with the context can be tested using
examples/libsmbclient/testbrowse -C
Derrell
(This used to be commit 38eab68dfb2d8abe8ad00f5a86fc54c778d0d303)
Diffstat (limited to 'source3/libsmb/libsmb_context.c')
-rw-r--r-- | source3/libsmb/libsmb_context.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/libsmb/libsmb_context.c b/source3/libsmb/libsmb_context.c index 3e67943c83..dd78bcee35 100644 --- a/source3/libsmb/libsmb_context.c +++ b/source3/libsmb/libsmb_context.c @@ -421,7 +421,8 @@ smbc_init_context(SMBCCTX *context) return NULL; } - if (!smbc_getFunctionAuthData(context) || + if ((!smbc_getFunctionAuthData(context) && + !smbc_getFunctionAuthDataWithContext(context)) || smbc_getDebug(context) < 0 || smbc_getDebug(context) > 100) { |