missing validity check for the reload case

parent 546c2bf7
......@@ -14,7 +14,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
/* $Id: statschannel.c,v 1.2 2008/01/17 00:15:13 jinmei Exp $ */
/* $Id: statschannel.c,v 1.3 2008/01/17 03:01:25 jinmei Exp $ */
/*! \file */
......@@ -375,7 +375,7 @@ update_listener(ns_server_t *server, ns_statschannel_t **listenerp,
* Now, keep the old access list unless a new one can be made.
*/
allow = cfg_tuple_get(listen_params, "allow");
if (allow != NULL) {
if (allow != NULL && cfg_obj_islist(allow)) {
result = cfg_acl_fromconfig(allow, config, ns_g_lctx,
aclconfctx, listener->mctx, 0,
&new_acl);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment