diff options
-rw-r--r-- | source3/smbd/trans2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c index 87c55ce2ce..162291c9a1 100644 --- a/source3/smbd/trans2.c +++ b/source3/smbd/trans2.c @@ -2257,7 +2257,7 @@ static void call_trans2findfirst(connection_struct *conn, bool ask_sharemode = lp_parm_bool(SNUM(conn), "smbd", "search ask sharemode", true); TALLOC_CTX *ctx = talloc_tos(); struct dptr_struct *dirptr = NULL; - struct smbd_server_connection *sconn = smbd_server_conn; + struct smbd_server_connection *sconn = req->sconn; if (total_params < 13) { reply_nterror(req, NT_STATUS_INVALID_PARAMETER); |