diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-04-04 19:17:58 +0200 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-04-04 19:17:58 +0200 |
commit | 13673749ffdd8947af5ff69e477f9144e8afc57f (patch) | |
tree | 4b75f09e9d35f78ea20a5c8f245a4da3c80de54f /openbsc/src/libabis/input | |
parent | a18b11602cb19198544a090078faaa0a826ec19c (diff) |
lapd: NULL pointer derefence possible here
The idiom seems to be to allocate the lapd_tei if it does not
exist and use it then. This was found by clang --analyze.
Diffstat (limited to 'openbsc/src/libabis/input')
-rw-r--r-- | openbsc/src/libabis/input/lapd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/libabis/input/lapd.c b/openbsc/src/libabis/input/lapd.c index 2a4f60e22..c8830d2a8 100644 --- a/openbsc/src/libabis/input/lapd.c +++ b/openbsc/src/libabis/input/lapd.c @@ -290,7 +290,7 @@ static void lapd_tei_receive(struct lapd_instance *li, uint8_t *data, int len) teip = teip_from_tei(li, action); if (!teip) { LOGP(DMI, LOGL_INFO, "TEI MGR: New TEI %u\n", action); - lapd_tei_alloc(li, action); + teip = lapd_tei_alloc(li, action); } /* Send ACCEPT */ |