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:
Pau Espin 2018-10-08 20:05:54 +02:00
parent f946fa21ee
commit b799344ecd
1 changed files with 1 additions and 1 deletions

View File

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