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:
parent
8455c65be3
commit
98c2393973
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user