1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-27 03:21:53 +03:00

r23902: Fix uninitialized read in devicetype noticed by Volker.

Jeremy
This commit is contained in:
Jeremy Allison 2007-07-16 18:17:19 +00:00 committed by Gerald (Jerry) Carter
parent 8455c65be3
commit 98c2393973

View File

@ -529,7 +529,7 @@ int reply_tcon_and_X(connection_struct *conn, char *inbuf,char *outbuf,int lengt
}
p += srvstr_pull_talloc(ctx, inbuf, SVAL(inbuf, smb_flg2), &client_devicetype, p,
6, STR_ASCII);
MIN(6,smb_bufrem(inbuf, p)), STR_ASCII);
if (client_devicetype == NULL) {
TALLOC_FREE(ctx);