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
This commit is contained in:
Vadim Yanitskiy 2022-06-29 00:16:04 +07:00 committed by fixeria
parent a1584d237b
commit 4f41d59f08
1 changed files with 1 additions and 1 deletions

View File

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