diff options
-rw-r--r-- | core/certmanager.lua | 2 | ||||
-rw-r--r-- | util/pubsub.lua | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/core/certmanager.lua b/core/certmanager.lua index 4b96e774..472e1665 100644 --- a/core/certmanager.lua +++ b/core/certmanager.lua @@ -64,7 +64,7 @@ function create_context(host, mode, user_ssl_config) verifyext = user_ssl_config.verifyext or default_verifyext; options = user_ssl_config.options or default_options; depth = user_ssl_config.depth; - curve = user_ssl_config.curve; + curve = user_ssl_config.curve or "secp384r1"; dhparam = user_ssl_config.dhparam; }; diff --git a/util/pubsub.lua b/util/pubsub.lua index 1ecbdfa8..e1418c62 100644 --- a/util/pubsub.lua +++ b/util/pubsub.lua @@ -233,6 +233,9 @@ function service:delete(node, actor) end -- local node_obj = self.nodes[node]; + if not node_obj then + return false, "item-not-found"; + end self.nodes[node] = nil; self.config.broadcaster("delete", node, node_obj.subscribers); return true; |