aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/mgcp
diff options
context:
space:
mode:
Diffstat (limited to 'openbsc/src/mgcp')
-rw-r--r--openbsc/src/mgcp/mgcp_network.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/mgcp/mgcp_network.c b/openbsc/src/mgcp/mgcp_network.c
index 137aa938..cc1bf44f 100644
--- a/openbsc/src/mgcp/mgcp_network.c
+++ b/openbsc/src/mgcp/mgcp_network.c
@@ -109,7 +109,7 @@ static void patch_and_count(uint16_t *last_seq, int *lost, int payload, char *da
if (*last_seq == 0)
*last_seq = seq;
else if (*last_seq + 1 != seq)
- *lost += abs(*last_seq - seq);
+ *lost = abs(seq - (*last_seq + 1));
*last_seq = seq;