aboutsummaryrefslogtreecommitdiffstats
path: root/utils/sysrepo-plugins/hicn-light/plugin/hicn_light_comm.c
diff options
context:
space:
mode:
Diffstat (limited to 'utils/sysrepo-plugins/hicn-light/plugin/hicn_light_comm.c')
-rw-r--r--utils/sysrepo-plugins/hicn-light/plugin/hicn_light_comm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/utils/sysrepo-plugins/hicn-light/plugin/hicn_light_comm.c b/utils/sysrepo-plugins/hicn-light/plugin/hicn_light_comm.c
index a1b4d7ad2..6c4f938ce 100644
--- a/utils/sysrepo-plugins/hicn-light/plugin/hicn_light_comm.c
+++ b/utils/sysrepo-plugins/hicn-light/plugin/hicn_light_comm.c
@@ -17,12 +17,14 @@
hc_sock_t * hsocket;
int hicn_connect_light() {
+
hsocket = hc_sock_create();
if (!hsocket)
HICN_LOG_ERR_MSG("Error creating socket\n");
if (hc_sock_connect(hsocket) < 0)
HICN_LOG_ERR_MSG("Error connecting to the forwarder\n");
return 0;
+
}
int hicn_disconnect_light() {