s3: Remove two false references to cli->inbuf
authorVolker Lendecke <vl@samba.org>
Mon, 23 May 2011 10:21:17 +0000 (12:21 +0200)
committerVolker Lendecke <vl@samba.org>
Mon, 23 May 2011 13:45:37 +0000 (15:45 +0200)
source3/libsmb/cliconnect.c

index 8d3fec36ec5769e9693ed4d6a85aa6910f8c4368..a4a3c11559b15c6d7e45e58b97f78b9489312cd0 100644 (file)
@@ -2646,10 +2646,10 @@ static void cli_negprot_done(struct tevent_req *subreq)
                }
                /* work out if they sent us a workgroup */
                if (!(cli->capabilities & CAP_EXTENDED_SECURITY) &&
-                   smb_buflen(cli->inbuf) > 8) {
+                   smb_buflen(inbuf) > 8) {
                        ssize_t ret;
                        status = smb_bytes_talloc_string(
-                               cli, (char *)cli->inbuf, &cli->server_domain,
+                               cli, (char *)inbuf, &cli->server_domain,
                                bytes + 8, num_bytes - 8, &ret);
                        if (tevent_req_nterror(req, status)) {
                                return;