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/.
pespin gerrit-no-reply at lists.osmocom.orgpespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-ggsn/+/14619 Change subject: ggsn: Avoid unaligned mem access reading PCO proto id ...................................................................... ggsn: Avoid unaligned mem access reading PCO proto id Change-Id: I3d80833319869503691a52927892e6ac30744915 --- M ggsn/ggsn.c 1 file changed, 1 insertion(+), 1 deletion(-) git pull ssh://gerrit.osmocom.org:29418/osmo-ggsn refs/changes/19/14619/1 diff --git a/ggsn/ggsn.c b/ggsn/ggsn.c index ad456dc..466f07d 100644 --- a/ggsn/ggsn.c +++ b/ggsn/ggsn.c @@ -670,7 +670,7 @@ static void process_pco_element(const struct pco_element *pco_elem, struct msgb *resp, const struct apn_ctx *apn, struct pdp_t *pdp) { - uint16_t protocol_id = ntohs(pco_elem->protocol_id); + uint16_t protocol_id = osmo_load16be(&pco_elem->protocol_id); LOGPPDP(LOGL_DEBUG, pdp, "PCO Protocol 0x%04x\n", protocol_id); switch (protocol_id) { -- To view, visit https://gerrit.osmocom.org/c/osmo-ggsn/+/14619 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmo-ggsn Gerrit-Branch: master Gerrit-Change-Id: I3d80833319869503691a52927892e6ac30744915 Gerrit-Change-Number: 14619 Gerrit-PatchSet: 1 Gerrit-Owner: pespin <pespin at sysmocom.de> Gerrit-MessageType: newchange -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190627/898f1a7f/attachment.htm>