daniel has submitted this change. ( 
https://gerrit.osmocom.org/c/libosmo-abis/+/30618 )

Change subject: ipa: Guard against calling ipa_client_conn_open* multiple times
......................................................................

ipa: Guard against calling ipa_client_conn_open* multiple times

Change-Id: I574af543429d01c9522e267265e97e4efe55b60c
---
M src/input/ipa.c
1 file changed, 3 insertions(+), 0 deletions(-)

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



diff --git a/src/input/ipa.c b/src/input/ipa.c
index 62b21e5..94e7e5a 100644
--- a/src/input/ipa.c
+++ b/src/input/ipa.c
@@ -249,6 +249,9 @@
 {
        int ret;

+       if (link->ofd->fd != -1)
+               return -EINVAL;
+
        link->state = IPA_CLIENT_LINK_STATE_CONNECTING;
        ret = osmo_sock_init2(AF_INET, SOCK_STREAM, IPPROTO_TCP,
                             link->local_addr, link->local_port,

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

Gerrit-Project: libosmo-abis
Gerrit-Branch: master
Gerrit-Change-Id: I574af543429d01c9522e267265e97e4efe55b60c
Gerrit-Change-Number: 30618
Gerrit-PatchSet: 2
Gerrit-Owner: daniel <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: daniel <[email protected]>
Gerrit-Reviewer: fixeria <[email protected]>
Gerrit-Reviewer: laforge <[email protected]>
Gerrit-Reviewer: osmith <[email protected]>
Gerrit-MessageType: merged

Reply via email to