summaryrefslogtreecommitdiff
path: root/source3/libsmb/cliconnect.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2009-01-26 20:45:09 +0100
committerVolker Lendecke <vl@samba.org>2009-01-29 21:38:06 +0100
commit37da26a06ee0a51f2e6c7b93e2fefc2342613c84 (patch)
tree1c4667731ddc9756d7dfb2adc2622c3cce0f26c4 /source3/libsmb/cliconnect.c
parent89caa0e86be9e20702a24fea4f94a11e6e02cc93 (diff)
downloadsamba-37da26a06ee0a51f2e6c7b93e2fefc2342613c84.tar.gz
samba-37da26a06ee0a51f2e6c7b93e2fefc2342613c84.tar.bz2
samba-37da26a06ee0a51f2e6c7b93e2fefc2342613c84.zip
Add the strlen to push to smb_bytes_push_str, return the converted size
The pushed strlen replaces the STR_TERMINATE flag which I personally always find very confusing.
Diffstat (limited to 'source3/libsmb/cliconnect.c')
-rw-r--r--source3/libsmb/cliconnect.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source3/libsmb/cliconnect.c b/source3/libsmb/cliconnect.c
index bc690f2e02..5778e7f6a3 100644
--- a/source3/libsmb/cliconnect.c
+++ b/source3/libsmb/cliconnect.c
@@ -1294,7 +1294,10 @@ struct async_req *cli_negprot_send(TALLOC_CTX *mem_ctx,
if (bytes == NULL) {
return NULL;
}
- bytes = smb_bytes_push_str(bytes, false, prots[numprots].name);
+ bytes = smb_bytes_push_str(bytes, false,
+ prots[numprots].name,
+ strlen(prots[numprots].name)+1,
+ NULL);
if (bytes == NULL) {
return NULL;
}