diff options
-rw-r--r-- | source/libsmb/libsmb_cache.c | 2 | ||||
-rw-r--r-- | source/libsmb/libsmbclient.c | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/source/libsmb/libsmb_cache.c b/source/libsmb/libsmb_cache.c index dabf5a527d5..71399f14db8 100644 --- a/source/libsmb/libsmb_cache.c +++ b/source/libsmb/libsmb_cache.c @@ -143,7 +143,7 @@ static SMBCSRV * smbc_get_cached_server(SMBCCTX * context, const char * server, * a connection to the server (other than the * attribute server connection) is cool. */ - if (context->options.one_share_per_server) { + if (context->internal->options.one_share_per_server) { /* * The currently connected share name * doesn't match the requested share, so diff --git a/source/libsmb/libsmbclient.c b/source/libsmb/libsmbclient.c index bc15fe7d508..c876720cfab 100644 --- a/source/libsmb/libsmbclient.c +++ b/source/libsmb/libsmbclient.c @@ -4370,9 +4370,7 @@ int smbc_getxattr_ctx(SMBCCTX *context, /* Yup. */ ret = cacl_get(context, ctx, srv, ipc_srv == NULL ? NULL : &ipc_srv->cli, - &pol, - (char *) path, (char *) name, - (const char *) value, size); + &pol, path, name, (const char *) value, size); if (ret < 0 && errno == 0) { errno = smbc_errno(context, &srv->cli); } |