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,