summaryrefslogtreecommitdiff
path: root/src/ipcpd
diff options
context:
space:
mode:
authordimitri staessens <dimitri.staessens@intec.ugent.be>2017-02-23 07:38:24 +0000
committerSander Vrijders <sander.vrijders@intec.ugent.be>2017-02-23 07:38:24 +0000
commitce5ad7a0697853e7d23030c823c3381ca3f71fef (patch)
tree850aee07707ef019e717a660ee3a334c7da4469b /src/ipcpd
parentb3913bd7d7c1fb4cc82de750990d2111df2d9b2d (diff)
parent3c43bb7b6f56f709a2098955726fdc8d4baa75f4 (diff)
downloadouroboros-ce5ad7a0697853e7d23030c823c3381ca3f71fef.tar.gz
ouroboros-ce5ad7a0697853e7d23030c823c3381ca3f71fef.zip
Merged in dstaesse/ouroboros/testing-bootstrap (pull request #389)
irmd: Check IPCP type before bootstrap
Diffstat (limited to 'src/ipcpd')
-rw-r--r--src/ipcpd/normal/main.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/ipcpd/normal/main.c b/src/ipcpd/normal/main.c
index e3955ff2..c41b6187 100644
--- a/src/ipcpd/normal/main.c
+++ b/src/ipcpd/normal/main.c
@@ -344,10 +344,8 @@ static int normal_ipcp_bootstrap(struct dif_config * conf)
(void) pol;
- if (conf == NULL || conf->type != THIS_TYPE) {
- log_err("Bad DIF configuration.");
- return -EINVAL;
- }
+ assert(conf);
+ assert(conf->type == THIS_TYPE);
pthread_rwlock_wrlock(&ipcpi.state_lock);