sms: Fix crash by saving the gsm_network

The conn might be released during the loop and then conn->bts
is a null pointer and we end up crashing. Store the gsm_network
in a local variable and access this one.
1 file changed
tree: 5930e7557c8713837c5d1b5d3702ca2190129654
  1. hlrsync/
  2. linux-kernel/
  3. openbsc/
  4. wireshark/