aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2018-10-08 20:05:54 +0200
committerPau Espin Pedrol <pespin@sysmocom.de>2018-10-08 20:20:43 +0200
commitb799344ecd7f0466eb677ccb4d980ed54954f38b (patch)
tree177e90327e8184c3cd18852b61dfe23761544af1 /src
parentf946fa21eec49f0e153e3f9ab5b6e94ccea05400 (diff)
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
Diffstat (limited to 'src')
-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;