aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bssmap_le
diff options
context:
space:
mode:
authorVadim Yanitskiy <vyanitskiy@sysmocom.de>2022-06-29 00:16:04 +0700
committerfixeria <vyanitskiy@sysmocom.de>2022-06-29 11:30:24 +0000
commit4f41d59f08b80e90381eb6085be1b2e3e7234fa9 (patch)
tree47cdde86992d122717b02d63f0b9610364955654 /tests/bssmap_le
parenta1584d237bab2f1f6637cab1bdee86dad9c63881 (diff)
fix uninitialized err pointer passed to osmo_bssap_le_dec()
osmo_bssap_le_dec() dereferences value of the given pointer and checks it against NULL. The caller must always initialize it. Change-Id: Id91dc73da1ca71827183564eb68b12c03ba332b3
Diffstat (limited to 'tests/bssmap_le')
-rw-r--r--tests/bssmap_le/bssmap_le_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/bssmap_le/bssmap_le_test.c b/tests/bssmap_le/bssmap_le_test.c
index 4d132b08..08ed4c6e 100644
--- a/tests/bssmap_le/bssmap_le_test.c
+++ b/tests/bssmap_le/bssmap_le_test.c
@@ -162,7 +162,7 @@ void test_bssmap_le_enc_dec()
.bssmap_le = *pdu,
};
struct bssap_le_pdu dec_pdu;
- struct osmo_bssap_le_err *err;
+ struct osmo_bssap_le_err *err = NULL;
void *loop_ctx;
int rc;