mbim: Don't copy too much

_mbim_message_build doesn't really care about the fragmentation header
contents, so just don't copy those unnecessarily.
This commit is contained in:
Denis Kenzior 2019-11-13 16:26:37 -06:00
parent 6cd9a241bd
commit 66bc5b3fd4
1 changed files with 1 additions and 1 deletions

View File

@ -712,7 +712,7 @@ struct mbim_message *_mbim_message_build(const void *header,
msg = l_new(struct mbim_message, 1);
msg->ref_count = 1;
memcpy(msg->header, header, HEADER_SIZE);
memcpy(msg->header, header, sizeof(struct mbim_message_header));
msg->frags = frags;
msg->n_frags = n_frags;
msg->sealed = true;