s3/libsmb: SIVAL should have been an SVAL.
authorJeremy Allison <jra@samba.org>
Tue, 15 Sep 2009 07:40:48 +0000 (09:40 +0200)
committerKarolin Seeger <kseeger@samba.org>
Tue, 15 Sep 2009 07:40:48 +0000 (09:40 +0200)
Fix bug #6726.

source3/libsmb/clifile.c

index 62d710ede4c11ec59998929e31847de4a891de4f..d9fdfb692776f4b6c9aed693b80845c11d92ef55 100644 (file)
@@ -820,7 +820,7 @@ struct async_req *cli_ntcreate_send(TALLOC_CTX *mem_ctx,
                return NULL;
        }
 
-       SIVAL(vwv+2, 1, converted_len);
+       SSVAL(vwv+2, 1, converted_len);
 
        result = cli_request_send(mem_ctx, ev, cli, SMBntcreateX, 0,
                                  24, vwv, 0, talloc_get_size(bytes), bytes);