Change in osmo-pcap[master]: client_send_link: snaplen not needed during allocation

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Pau Espin Pedrol gerrit-no-reply at lists.osmocom.org
Mon Oct 8 18:24:31 UTC 2018


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 <pespin at sysmocom.de>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20181008/b983c402/attachment.htm>


More information about the gerrit-log mailing list