[PATCH 5/5] nat: Use ctrl_cmd_send_wqueue to send cmds over the nat-bsc link

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/.

Daniel Willmann daniel at totalueberwachung.de
Thu Sep 15 14:04:53 UTC 2011


---
 openbsc/src/osmo-bsc_nat/bsc_nat.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/openbsc/src/osmo-bsc_nat/bsc_nat.c b/openbsc/src/osmo-bsc_nat/bsc_nat.c
index 2753065..f432622 100644
--- a/openbsc/src/osmo-bsc_nat/bsc_nat.c
+++ b/openbsc/src/osmo-bsc_nat/bsc_nat.c
@@ -1249,7 +1249,7 @@ static int handle_ctrlif_msg(struct bsc_connection *bsc, struct msgb *msg)
 	talloc_free(cmd);
 	return 0;
 err:
-	ctrl_cmd_send(&bsc->write_queue, cmd);
+	ctrl_cmd_send_wqueue(&bsc->write_queue, cmd);
 	talloc_free(cmd);
 	return 0;
 }
@@ -1657,7 +1657,7 @@ static int forward_to_bsc(struct ctrl_cmd *cmd)
 				goto err;
 			}
 
-			if (ctrl_cmd_send(&bsc->write_queue, bsc_cmd)) {
+			if (ctrl_cmd_send_wqueue(&bsc->write_queue, bsc_cmd)) {
 				cmd->reply = "Sending failed";
 				goto err;
 			}
-- 
1.7.6.1





More information about the OpenBSC mailing list