no more seg fault, when mod_bindings is MOD_NULL
FossilOrigin-Name: b9e8a0bcea5eb2675d7c1cc808a24d47e125292a69a7173483c210dc485d561b
This commit is contained in:
parent
d574fd4fe6
commit
848a319d45
@ -148,11 +148,11 @@ struct cw_MsgSet *cw_mod_get_msg_set(struct conn *conn,
|
||||
bindings_mod->name);
|
||||
|
||||
|
||||
if (capwap_mod) {
|
||||
if (capwap_mod != MOD_NULL) {
|
||||
cached_set->capwap = capwap_mod->name;
|
||||
capwap_mod->register_messages(cached_set->msgset, CW_MOD_MODE_CAPWAP);
|
||||
}
|
||||
if (bindings_mod) {
|
||||
if (bindings_mod != MOD_NULL) {
|
||||
cached_set->bindings = bindings_mod->name;
|
||||
bindings_mod->register_messages(cached_set->msgset, CW_MOD_MODE_BINDINGS);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user