mirror of https://gerrit.osmocom.org/libosmocore
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:
parent
a1584d237b
commit
4f41d59f08
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue