diff options
-rw-r--r-- | source3/libsmb/cliconnect.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/libsmb/cliconnect.c b/source3/libsmb/cliconnect.c index 8d3fec36ec..a4a3c11559 100644 --- a/source3/libsmb/cliconnect.c +++ b/source3/libsmb/cliconnect.c @@ -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; |