daniel has uploaded this change for review. ( 
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(-)



  git pull ssh://gerrit.osmocom.org:29418/libosmo-abis refs/changes/18/30618/1

diff --git a/src/input/ipa.c b/src/input/ipa.c
index 71095ba..ffdaa96 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: 1
Gerrit-Owner: daniel <[email protected]>
Gerrit-MessageType: newchange

Reply via email to