aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2015-11-20 00:57:05 +0100
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2015-11-20 01:15:03 +0100
commit6187e010a8fb6f503ce7bf0ee93530787acfc876 (patch)
treec1ce672bdbd1eae598f191da07df07e4ec8dfa87 /openbsc/src
parent3c820ee532021a89aca96d1a52ecb463ccc07d03 (diff)
gtphub: fix echo reply to SGSNs: wrong fd. Add test.
The actual fix is just one character, but also add a regression test against this, on both CTRL and USER plane.
Diffstat (limited to 'openbsc/src')
-rw-r--r--openbsc/src/gprs/gtphub.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/gprs/gtphub.c b/openbsc/src/gprs/gtphub.c
index 22da9a303..e86620fcc 100644
--- a/openbsc/src/gprs/gtphub.c
+++ b/openbsc/src/gprs/gtphub.c
@@ -1559,7 +1559,7 @@ int gtphub_from_sgsns_handle_buf(struct gtphub *hub,
if (reply_len > 0) {
/* It was an echo. Nothing left to do. */
osmo_sockaddr_copy(to_addr, from_addr);
- *to_ofd = &hub->to_ggsns[plane_idx].ofd;
+ *to_ofd = &hub->to_sgsns[plane_idx].ofd;
return reply_len;
}
if (reply_len < 0)