pespin has submitted this change. ( 
https://gerrit.osmocom.org/c/libosmo-abis/+/38965?usp=email )

Change subject: e1_input: Fix e1i_ts pointing to old line after line_clone
......................................................................

e1_input: Fix e1i_ts pointing to old line after line_clone

Change-Id: I8f8e1fd67a63b46d59f433ad01bb2ab880cdf910
---
M src/e1_input.c
1 file changed, 4 insertions(+), 0 deletions(-)

Approvals:
  Jenkins Builder: Verified
  osmith: Looks good to me, but someone else must approve
  fixeria: Looks good to me, but someone else must approve
  pespin: Looks good to me, approved




diff --git a/src/e1_input.c b/src/e1_input.c
index 145fccf..76adbd9 100644
--- a/src/e1_input.c
+++ b/src/e1_input.c
@@ -675,6 +675,10 @@
                OSMO_ASSERT(clone->sock_path);
        }

+       /* Update TS to point to the cloned line: */
+       for (unsigned int i = 0; i < line->num_ts; i++)
+               clone->ts[i].line = clone;
+
        /*
         * Rate counters and driver data are shared between clones. These are 
pointers
         * to dynamic memory so we use reference counting to avoid a 
double-free (see OS#3137).

--
To view, visit https://gerrit.osmocom.org/c/libosmo-abis/+/38965?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings?usp=email

Gerrit-MessageType: merged
Gerrit-Project: libosmo-abis
Gerrit-Branch: master
Gerrit-Change-Id: I8f8e1fd67a63b46d59f433ad01bb2ab880cdf910
Gerrit-Change-Number: 38965
Gerrit-PatchSet: 2
Gerrit-Owner: pespin <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <[email protected]>
Gerrit-Reviewer: osmith <[email protected]>
Gerrit-Reviewer: pespin <[email protected]>

Reply via email to