mncc_sock: Fix potential segfault in case MNCC app dies

We create a loop by not setting trans->callref = 0 before calling
trans_free(), as the latter would again send a MNCC_REL_IND up
the stack.

Also: Fix memory leak in case we try to read from mncc_sock
but socket is just gone.
2 files changed
tree: 26d8bfb97072ae3494f979d703895feb3c8f26a1
  1. hlrsync/
  2. linux-kernel/
  3. openbsc/
  4. wireshark/