diff options
-rw-r--r-- | source4/smb_server/smb/service.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/smb_server/smb/service.c b/source4/smb_server/smb/service.c index b396d2b605..39caf3789c 100644 --- a/source4/smb_server/smb/service.c +++ b/source4/smb_server/smb/service.c @@ -174,7 +174,7 @@ NTSTATUS smbsrv_tcon_backend(struct smbsrv_request *req, union smb_tcon *con) if (con->generic.level == RAW_TCON_TCON) { DATA_BLOB password; - password = data_blob(con->tcon.in.password, strlen(con->tcon.in.password) + 1); + password = data_blob_string_const(con->tcon.in.password); status = make_connection(req, con->tcon.in.service, password, con->tcon.in.dev); |