commit | c931ebf26dabbd1e75fa2088c7b0b9bb4f8d3302 | [log] [tgz] |
---|---|---|
author | Neels Hofmeyr <nhofmeyr@sysmocom.de> | Wed Dec 02 14:15:36 2015 +0100 |
committer | Neels Hofmeyr <nhofmeyr@sysmocom.de> | Thu Dec 03 11:46:19 2015 +0100 |
tree | 2f42390e8df2ca2e8c0bf5cbf29b6c1e083bef37 | |
parent | 0b95614b8f89f9e7b6e5c696d7e07d02e1d856e9 [diff] [blame] |
gtphub: fix: add a missing NULL check Sponsored-by: On-Waves ehi
diff --git a/openbsc/src/gprs/gtphub.c b/openbsc/src/gprs/gtphub.c index 6dc1ea0..78e8c90 100644 --- a/openbsc/src/gprs/gtphub.c +++ b/openbsc/src/gprs/gtphub.c
@@ -1277,6 +1277,8 @@ te = &tun->endpoint[side_idx][plane_idx]; te2 = &new_tun->endpoint[side_idx][plane_idx]; if ((te->tei_orig != te2->tei_orig) + || (!te->peer) + || (!te2->peer) || !gsn_addr_same(&te->peer->peer_addr->addr, &te2->peer->peer_addr->addr)) continue;