s3: Remove "req_wct_ofs()"
[kai/samba.git] / source3 / smbd / pipes.c
index b39c0f0e5959313d7afc0a26987d0ea3315f11fb..c21b635bfb66b2d18ef2a6fac8876b0225163225 100644 (file)
@@ -479,7 +479,7 @@ static void pipe_read_andx_done(struct tevent_req *subreq)
 
        SSVAL(req->outbuf,smb_vwv5,nread);
        SSVAL(req->outbuf,smb_vwv6,
-             req_wct_ofs(req)
+             (smb_wct - 4)     /* offset from smb header to wct */
              + 1               /* the wct field */
              + 12 * sizeof(uint16_t) /* vwv */
              + 2);             /* the buflen field */