aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2021-02-11 15:58:40 +0100
committerHarald Welte <laforge@osmocom.org>2021-02-11 16:07:45 +0100
commitce6e4b79b81a619005a2609569f4f313b3c2704a (patch)
tree3d96d5676b6479f063878f9619072aa4e44b8bbc /tests
parentcc2e112e9a6e05cd04fce285caf9e421f8b727de (diff)
ns2_fr: Fix null pointer deref in error path
The followign happens if osmo-gbproxy is started without CAP_NET_RAW: <0026> gprs_ns2_fr.c:515 BIND(hdlcnet1) Can not create AF_PACKET socket. Are you root or have CAP_NET_RAW? gprs_ns2_fr.c:176:2: runtime error: member access within null pointer of type 'struct msgb' AddressSanitizer:DEADLYSIGNAL the second line is free_bind() iterating overr the backlog while destroying the not-yet-fully-initialized bind. Let's make sure the backlog llist_head is always initialized properly. Change-Id: I4d2fa50955c5897cd469fee68d4ddc65a9f5688f
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions