diff options
author | dimitri staessens <dimitri.staessens@intec.ugent.be> | 2017-02-23 07:38:24 +0000 |
---|---|---|
committer | Sander Vrijders <sander.vrijders@intec.ugent.be> | 2017-02-23 07:38:24 +0000 |
commit | ce5ad7a0697853e7d23030c823c3381ca3f71fef (patch) | |
tree | 850aee07707ef019e717a660ee3a334c7da4469b /src/ipcpd/normal/main.c | |
parent | b3913bd7d7c1fb4cc82de750990d2111df2d9b2d (diff) | |
parent | 3c43bb7b6f56f709a2098955726fdc8d4baa75f4 (diff) | |
download | ouroboros-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/normal/main.c')
-rw-r--r-- | src/ipcpd/normal/main.c | 6 |
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); |