diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2018-10-08 20:05:54 +0200 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2018-10-08 20:20:43 +0200 |
commit | b799344ecd7f0466eb677ccb4d980ed54954f38b (patch) | |
tree | 177e90327e8184c3cd18852b61dfe23761544af1 | |
parent | f946fa21eec49f0e153e3f9ab5b6e94ccea05400 (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
-rw-r--r-- | src/osmo_client_network.c | 2 |
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; |