summaryrefslogtreecommitdiff
path: root/src/lib/ipcp.c
diff options
context:
space:
mode:
authordimitri staessens <dimitri.staessens@intec.ugent.be>2016-06-24 18:57:34 +0200
committerdimitri staessens <dimitri.staessens@intec.ugent.be>2016-06-24 18:57:34 +0200
commit76eff8e31eb1e6a6b65284ec4d33cfa088008c3d (patch)
treebbb7186d986f9555e457768504f9ad0ad7cbbaad /src/lib/ipcp.c
parent0abbbd9fb6499d02d04a5007e803eb79306c341b (diff)
parent4b5eaafdc9b61307a6a4074366372df3c170372e (diff)
downloadouroboros-76eff8e31eb1e6a6b65284ec4d33cfa088008c3d.tar.gz
ouroboros-76eff8e31eb1e6a6b65284ec4d33cfa088008c3d.zip
Merge branch 'be' of bitbucket.org:ouroboros-rina/ouroboros into be-irmd-registry
Diffstat (limited to 'src/lib/ipcp.c')
-rw-r--r--src/lib/ipcp.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/lib/ipcp.c b/src/lib/ipcp.c
index a43afd21..730880f9 100644
--- a/src/lib/ipcp.c
+++ b/src/lib/ipcp.c
@@ -275,35 +275,32 @@ int ipcp_bootstrap(pid_t pid,
}
int ipcp_enroll(pid_t pid,
- char * member_name,
+ char * dif_name,
char * n_1_dif)
{
ipcp_msg_t msg = IPCP_MSG__INIT;
ipcp_msg_t * recv_msg = NULL;
int ret = -1;
- if (n_1_dif == NULL || member_name == NULL)
+ if (n_1_dif == NULL || dif_name == NULL)
return -EINVAL;
- msg.code = IPCP_MSG_CODE__IPCP_ENROLL;
- msg.member_name = member_name;
- msg.n_1_dif = n_1_dif;
+ msg.code = IPCP_MSG_CODE__IPCP_ENROLL;
+ msg.dif_name = dif_name;
+ msg.n_1_dif = n_1_dif;
recv_msg = send_recv_ipcp_msg(pid, &msg);
if (recv_msg == NULL) {
- free(msg.member_name);
return -1;
}
if (recv_msg->has_result == false) {
ipcp_msg__free_unpacked(recv_msg, NULL);
- free(msg.member_name);
return -1;
}
ret = recv_msg->result;
ipcp_msg__free_unpacked(recv_msg, NULL);
- free(msg.member_name);
return ret;
}