aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/osmo_client_network.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/osmo_client_network.c b/src/osmo_client_network.c
index 7073d6c..2ace22e 100644
--- a/src/osmo_client_network.c
+++ b/src/osmo_client_network.c
@@ -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;