summaryrefslogtreecommitdiff
path: root/src/ipcpd/ipcp.c
diff options
context:
space:
mode:
authorSander Vrijders <sander.vrijders@intec.ugent.be>2016-08-16 10:45:31 +0200
committerSander Vrijders <sander.vrijders@intec.ugent.be>2016-08-16 10:45:31 +0200
commitfbc0b71d3947cb6047e3e710d606ffc6a39778bc (patch)
tree0a5fead93b09bf15eae5851e4b022f05df3fdae5 /src/ipcpd/ipcp.c
parent44cc6aaa41d88dc978a087178fd74a1c2dba70fd (diff)
parent54b1ba99e15660e2e12dbc564f7e7428b5440446 (diff)
downloadouroboros-fbc0b71d3947cb6047e3e710d606ffc6a39778bc.tar.gz
ouroboros-fbc0b71d3947cb6047e3e710d606ffc6a39778bc.zip
Merged in dstaesse/ouroboros/be-fix-normal (pull request #210)
ipcpd: Fix bootstrap with api_bind
Diffstat (limited to 'src/ipcpd/ipcp.c')
-rw-r--r--src/ipcpd/ipcp.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/ipcpd/ipcp.c b/src/ipcpd/ipcp.c
index 5c066cb0..544b10df 100644
--- a/src/ipcpd/ipcp.c
+++ b/src/ipcpd/ipcp.c
@@ -184,7 +184,13 @@ void * ipcp_main_loop(void * o)
}
conf_msg = msg->conf;
conf.type = conf_msg->ipcp_type;
- conf.dif_name = conf_msg->dif_name;
+ conf.dif_name = strdup(conf_msg->dif_name);
+ if (conf.dif_name == NULL) {
+ ret_msg.has_result = true;
+ ret_msg.result = -1;
+ break;
+ }
+
if (conf_msg->ipcp_type == IPCP_NORMAL) {
conf.addr_size = conf_msg->addr_size;
conf.cep_id_size = conf_msg->cep_id_size;