fix HO inter-BSC-IN target bts for counters

Related: OS#4736
Change-Id: Id38c69695c4ab93733571c0c288a2d5c10624ace
diff --git a/src/osmo-bsc/handover_fsm.c b/src/osmo-bsc/handover_fsm.c
index 7e46147..3975ed3 100644
--- a/src/osmo-bsc/handover_fsm.c
+++ b/src/osmo-bsc/handover_fsm.c
@@ -919,6 +919,11 @@
 	if (hdc && hdc->on_handover_end)
 		hdc->on_handover_end(conn, result);
 
+	/* HO_INTER_BSC_IN has the source BTS on a remote BSS, so count all of those on the target BTS; also count
+	 * errors onto the HO target BTS if no lchan was obtained. */
+	if (ho->scope & HO_INTER_BSC_IN)
+		bts = ho->new_bts;
+
 	ho_count_bsc(result_counter_BSC_HANDOVER(result));
 	ho_count_bsc(result_counter_bsc(ho->scope, result));
 	ho_count_bts(bts, result_counter_BTS_HANDOVER(result));