summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2002-08-01 03:38:21 +0000
committerAndrew Tridgell <tridge@samba.org>2002-08-01 03:38:21 +0000
commita4e3bdbbeec2071fc1a629db6426e3fd4951f7ce (patch)
tree2bfd783f6e69aa14d2fa4cf59b08db9ef0b1eeb7
parentc4d68a29c97ba14a9df6dbcc73d0edc6f21bd0f4 (diff)
downloadsamba-a4e3bdbbeec2071fc1a629db6426e3fd4951f7ce.tar.gz
samba-a4e3bdbbeec2071fc1a629db6426e3fd4951f7ce.tar.bz2
samba-a4e3bdbbeec2071fc1a629db6426e3fd4951f7ce.zip
make sure we null terminate plaintext passwords
(This used to be commit cf2abf677ed9942d841ef61ffb2565244c8979ac)
-rw-r--r--source3/smbd/sesssetup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/sesssetup.c b/source3/smbd/sesssetup.c
index deab1015f5..a00554e638 100644
--- a/source3/smbd/sesssetup.c
+++ b/source3/smbd/sesssetup.c
@@ -704,7 +704,7 @@ int reply_sesssetup_and_X(connection_struct *conn, char *inbuf,char *outbuf,
pstring pass;
srvstr_pull(inbuf, pass, smb_buf(inbuf),
sizeof(pass), passlen1, STR_TERMINATE);
- plaintext_password = data_blob(pass, strlen(pass));
+ plaintext_password = data_blob(pass, strlen(pass)+1);
}
p += passlen1 + passlen2;