Changeset 740 for vendor/current/source3/smbd/ipc.c
- Timestamp:
- Nov 14, 2012, 12:59:34 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/current/source3/smbd/ipc.c
r414 r740 26 26 27 27 #include "includes.h" 28 #include "smbd/smbd.h" 28 29 #include "smbd/globals.h" 30 #include "smbprofile.h" 31 #include "rpc_server/srv_pipe_hnd.h" 29 32 30 33 #define NERR_notsupported 50 … … 94 97 int ldata = rdata ? rdata_len : 0; 95 98 int lparam = rparam ? rparam_len : 0; 96 struct smbd_server_connection *sconn = smbd_server_conn;99 struct smbd_server_connection *sconn = req->sconn; 97 100 int max_send = sconn->smb1.sessions.max_send; 98 101 … … 136 139 137 140 show_msg((char *)req->outbuf); 138 if (!srv_send_smb(s mbd_server_fd(), (char *)req->outbuf,141 if (!srv_send_smb(sconn, (char *)req->outbuf, 139 142 true, req->seqnum+1, 140 143 IS_CONN_ENCRYPTED(conn), &req->pcd)) { … … 196 199 197 200 show_msg((char *)req->outbuf); 198 if (!srv_send_smb(s mbd_server_fd(), (char *)req->outbuf,201 if (!srv_send_smb(sconn, (char *)req->outbuf, 199 202 true, req->seqnum+1, 200 203 IS_CONN_ENCRYPTED(conn), &req->pcd)) … … 228 231 struct tevent_req *subreq; 229 232 struct dcerpc_cmd_state *state; 233 bool busy; 230 234 231 235 if (!fsp_is_np(fsp)) { 232 236 api_no_reply(conn, req); 237 return; 238 } 239 240 /* 241 * Trans requests are only allowed 242 * if no other Trans or Read is active 243 */ 244 busy = np_read_in_progress(fsp->fake_file_handle); 245 if (busy) { 246 reply_nterror(req, NT_STATUS_PIPE_BUSY); 233 247 return; 234 248 } … … 303 317 send: 304 318 if (!srv_send_smb( 305 smbd_server_fd(), (char *)req->outbuf,319 req->sconn, (char *)req->outbuf, 306 320 true, req->seqnum+1, 307 321 IS_CONN_ENCRYPTED(req->conn) || req->encrypted, 308 322 &req->pcd)) { 309 exit_server_cleanly("construct_reply: srv_send_smb failed."); 323 exit_server_cleanly("api_dcerpc_cmd_write_done: " 324 "srv_send_smb failed."); 310 325 } 311 326 TALLOC_FREE(req); … … 330 345 reply_nterror(req, status); 331 346 332 if (!srv_send_smb( smbd_server_fd(), (char *)req->outbuf,347 if (!srv_send_smb(req->sconn, (char *)req->outbuf, 333 348 true, req->seqnum+1, 334 349 IS_CONN_ENCRYPTED(req->conn) 335 350 ||req->encrypted, &req->pcd)) { 336 exit_server_cleanly(" construct_reply: srv_send_smb"337 " failed.");351 exit_server_cleanly("api_dcerpc_cmd_read_done: " 352 "srv_send_smb failed."); 338 353 } 339 354 TALLOC_FREE(req);
Note:
See TracChangeset
for help on using the changeset viewer.