mirror of https://gerrit.osmocom.org/osmo-pcap
client_send_link: snaplen not needed during allocation
We don't send any pkt data, so no need to allocate snaplen bytes extra. Change-Id: I8d6385f6ff265564492121812a7a9f2bcfea3d5f
This commit is contained in:
parent
f946fa21ee
commit
b799344ecd
|
@ -239,7 +239,7 @@ void osmo_client_send_link(struct osmo_pcap_client_conn *conn)
|
|||
return;
|
||||
}
|
||||
|
||||
msg = msgb_alloc(conn->client->snaplen + sizeof(*om_hdr) + sizeof(*hdr), "link-data");
|
||||
msg = msgb_alloc(sizeof(*om_hdr) + sizeof(*hdr), "link-data");
|
||||
if (!msg) {
|
||||
LOGP(DCLIENT, LOGL_ERROR, "Failed to allocate data.\n");
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue