summaryrefslogtreecommitdiff
path: root/src/ipcpd/ipcp.c
diff options
context:
space:
mode:
authordimitri staessens <[email protected]>2016-08-11 16:32:50 +0200
committerdimitri staessens <[email protected]>2016-08-11 16:32:50 +0200
commitb3c27cda358c24e867a42199e0d5702d9d0b1607 (patch)
treee7db1b4a83a0499b8f16cf248e62cd16d9e809d8 /src/ipcpd/ipcp.c
parent12f880ce6e6dccb9ec76a2b960413e625ad03aef (diff)
downloadouroboros-b3c27cda358c24e867a42199e0d5702d9d0b1607.tar.gz
ouroboros-b3c27cda358c24e867a42199e0d5702d9d0b1607.zip
ipcpd: Fix deep copy of dif_config
conf->dif_name was not copied from the dif_config gpb message. Fixes some logs.
Diffstat (limited to 'src/ipcpd/ipcp.c')
-rw-r--r--src/ipcpd/ipcp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ipcpd/ipcp.c b/src/ipcpd/ipcp.c
index 784d845a..24f580e5 100644
--- a/src/ipcpd/ipcp.c
+++ b/src/ipcpd/ipcp.c
@@ -173,6 +173,7 @@ void * ipcp_main_loop(void * o)
}
conf_msg = msg->conf;
conf.type = conf_msg->ipcp_type;
+ conf.dif_name = conf_msg->dif_name;
if (conf_msg->ipcp_type == IPCP_NORMAL) {
conf.addr_size = conf_msg->addr_size;
conf.cep_id_size = conf_msg->cep_id_size;
@@ -202,8 +203,7 @@ void * ipcp_main_loop(void * o)
break;
}
ret_msg.has_result = true;
- ret_msg.result =
- _ipcp->ops->ipcp_enroll(msg->dif_name);
+ ret_msg.result = _ipcp->ops->ipcp_enroll(msg->dif_name);
break;
case IPCP_MSG_CODE__IPCP_NAME_REG: