[PATCH 01/11] ipa: fix missing set of write_cb for IPA client connection

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/OpenBSC@lists.osmocom.org/.

pablo at gnumonks.org pablo at gnumonks.org
Wed Aug 22 15:04:43 UTC 2012


From: Pablo Neira Ayuso <pablo at gnumonks.org>

Now the BTS and BSC tests work again.
---
 src/input/ipa.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/input/ipa.c b/src/input/ipa.c
index a887959..3c6a507 100644
--- a/src/input/ipa.c
+++ b/src/input/ipa.c
@@ -249,6 +249,9 @@ ipa_client_conn_create(void *ctx, struct e1inp_ts *ts,
 	/* default to generic write callback if not set. */
 	if (write_cb == NULL)
 		ipa_link->write_cb = ipa_client_write_default_cb;
+	else
+		ipa_link->write_cb = write_cb;
+
 	if (ts)
 		ipa_link->line = ts->line;
 	ipa_link->data = data;
-- 
1.7.10.4





More information about the OpenBSC mailing list