From 9ed01722c24ca10ccf77f2b5fb49abbddc765e78 Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Mon, 20 Jan 2020 16:18:53 +0100 Subject: osmo_sccp_simple_server(): use sccp instance index 0 instead of 1 When using osmo_sccp_simple_client(), it will create an sccp instance if none exists. The sccp instance identifier starts with 0. The implicit created instance should use sccp instance 0 (the first connection). This is basically a counterpart of much older commit 3884eb68d9322967340d4f04e7382b2147ec7a2e, were same logic was applied to osmo_sccp_simple_client(). Change-Id: I85d2680ac65a552d7b2824ec41cd8fc669782079 --- src/sccp_user.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sccp_user.c b/src/sccp_user.c index 386f424..d85fc1d 100644 --- a/src/sccp_user.c +++ b/src/sccp_user.c @@ -691,7 +691,7 @@ osmo_sccp_simple_server(void *ctx, uint32_t pc, enum osmo_ss7_asp_protocol prot, int local_port, const char *local_ip) { - return osmo_sccp_simple_server_on_ss7_id(ctx, 1, pc, prot, + return osmo_sccp_simple_server_on_ss7_id(ctx, 0, pc, prot, local_port, local_ip); } -- cgit v1.2.3