Pau Espin Pedrol has uploaded this change for review. ( 
https://gerrit.osmocom.org/11279


Change subject: client_send_link: snaplen not needed during allocation
......................................................................

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
---
M src/osmo_client_network.c
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-pcap refs/changes/79/11279/1

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

--
To view, visit https://gerrit.osmocom.org/11279
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-pcap
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I8d6385f6ff265564492121812a7a9f2bcfea3d5f
Gerrit-Change-Number: 11279
Gerrit-PatchSet: 1
Gerrit-Owner: Pau Espin Pedrol <[email protected]>

Reply via email to