]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3: Introduce "req" helper var in reply_lockingX_success
authorVolker Lendecke <vl@samba.org>
Tue, 28 Feb 2012 01:47:46 +0000 (02:47 +0100)
committerVolker Lendecke <vl@samba.org>
Wed, 29 Feb 2012 02:08:53 +0000 (03:08 +0100)
Autobuild-User: Volker Lendecke <vl@samba.org>
Autobuild-Date: Wed Feb 29 03:08:53 CET 2012 on sn-devel-104

source3/smbd/blocking.c

index 028adce71c3705c83b2b4bc1db3d62584e97675c..6496e4350544ff0adc43a9f44d18ed2e64ba3a17 100644 (file)
@@ -268,7 +268,9 @@ bool push_blocking_lock_request( struct byte_range_lock *br_lck,
 
 static void reply_lockingX_success(struct blocking_lock_record *blr)
 {
-       reply_outbuf(blr->req, 2, 0);
+       struct smb_request *req = blr->req;
+
+       reply_outbuf(req, 2, 0);
 
        /*
         * As this message is a lockingX call we must handle
@@ -278,8 +280,8 @@ static void reply_lockingX_success(struct blocking_lock_record *blr)
         * that here and must set up the chain info manually.
         */
 
-       chain_reply(blr->req);
-       TALLOC_FREE(blr->req->outbuf);
+       chain_reply(req);
+       TALLOC_FREE(req->outbuf);
 }
 
 /****************************************************************************