Changeset 751 for trunk/server/source3/smbd/blocking.c
- Timestamp:
- Nov 29, 2012, 1:59:04 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server/source3/smbd/blocking.c
r745 r751 327 327 *****************************************************************************/ 328 328 329 static void reply_lockingX_error(struct blocking_lock_record *blr, NTSTATUS status)329 static void undo_locks_obtained(struct blocking_lock_record *blr) 330 330 { 331 331 files_struct *fsp = blr->fsp; … … 371 371 WINDOWS_LOCK); 372 372 } 373 374 generic_blocking_lock_error(blr, status);375 373 } 376 374 … … 385 383 switch(blr->req->cmd) { 386 384 case SMBlockingX: 387 reply_lockingX_error(blr, status); 388 break; 385 /* 386 * This code can be called during the rundown of a 387 * file after it was already closed. In that case, 388 * blr->fsp==NULL and we do not need to undo any 389 * locks, they are already gone. 390 */ 391 if (blr->fsp != NULL) { 392 undo_locks_obtained(blr); 393 } 394 generic_blocking_lock_error(blr, status); 395 break; 389 396 case SMBtrans2: 390 397 case SMBtranss2:
Note:
See TracChangeset
for help on using the changeset viewer.