1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00

r23902: Fix uninitialized read in devicetype noticed by Volker.

Jeremy
(This used to be commit 98c2393973)
This commit is contained in:
Jeremy Allison 2007-07-16 18:17:19 +00:00 committed by Gerald (Jerry) Carter
parent 164f75efea
commit b4366f6c37

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);