mirror of git://git.sysmocom.de/ofono
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:
parent
6cd9a241bd
commit
66bc5b3fd4
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue