diff options
author | dimitri staessens <[email protected]> | 2017-05-15 10:11:25 +0000 |
---|---|---|
committer | Sander Vrijders <[email protected]> | 2017-05-15 10:11:25 +0000 |
commit | 0fc0f3701ef4f504e71eadcc92a93faf1dd33bf4 (patch) | |
tree | ea16469c2d8fbcb417ed89e0bbd550834d0602a6 /src/irmd/ipcp.c | |
parent | b36acfd93b1dc16a153ca9b9077d113732accb4e (diff) | |
parent | 9903b8a2f9a7dc8ebac6928dcf2d2b5593ea0615 (diff) | |
download | ouroboros-0fc0f3701ef4f504e71eadcc92a93faf1dd33bf4.tar.gz ouroboros-0fc0f3701ef4f504e71eadcc92a93faf1dd33bf4.zip |
Merged in dstaesse/ouroboros/be-syntax-dev (pull request #505)
ipcpd: Allow specifying fixed syntax
Diffstat (limited to 'src/irmd/ipcp.c')
-rw-r--r-- | src/irmd/ipcp.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/irmd/ipcp.c b/src/irmd/ipcp.c index 182970b1..28e91b18 100644 --- a/src/irmd/ipcp.c +++ b/src/irmd/ipcp.c @@ -241,14 +241,14 @@ int ipcp_enroll(pid_t api, return ret; } - if (!recv_msg->has_dir_hash_algo || recv_msg->dif_name == NULL) { + if (recv_msg->dif_info == NULL) { ipcp_msg__free_unpacked(recv_msg, NULL); return -EIPCP; } - info->algo = recv_msg->dir_hash_algo; + info->dir_hash_algo = recv_msg->dif_info->dir_hash_algo; - strcpy(info->dif_name, recv_msg->dif_name); + strcpy(info->dif_name, recv_msg->dif_info->dif_name); ipcp_msg__free_unpacked(recv_msg, NULL); |