fixeria has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/openbsc/+/27144 )


Change subject: libbsc: fix potential null-dereference in abis_nm_perform_test()
......................................................................

libbsc: fix potential null-dereference in abis_nm_perform_test()

Change-Id: I93d816a20ba208e9fd32a1fc172a78ccd326e1ba
Related: OS#5450
---
M openbsc/src/libbsc/abis_nm.c
1 file changed, 2 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/openbsc refs/changes/44/27144/1

diff --git a/openbsc/src/libbsc/abis_nm.c b/openbsc/src/libbsc/abis_nm.c
index 922c2d5..c1e2b53 100644
--- a/openbsc/src/libbsc/abis_nm.c
+++ b/openbsc/src/libbsc/abis_nm.c
@@ -1993,6 +1993,8 @@

        if (!msg)
                msg = nm_msgb_alloc();
+       if (!msg)
+               return -ENOMEM;

        msgb_tv_push(msg, NM_ATT_AUTON_REPORT, auton_report);
        msgb_tv_push(msg, NM_ATT_TEST_NO, test_nr);

--
To view, visit https://gerrit.osmocom.org/c/openbsc/+/27144
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: openbsc
Gerrit-Branch: master
Gerrit-Change-Id: I93d816a20ba208e9fd32a1fc172a78ccd326e1ba
Gerrit-Change-Number: 27144
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <[email protected]>
Gerrit-MessageType: newchange

Reply via email to