diff --git a/lib/rpc.c b/lib/rpc.c index 701a85f..8a74ce6 100644 --- a/lib/rpc.c +++ b/lib/rpc.c @@ -102,6 +102,8 @@ int sxmp_rpclist_add_function(usrtc_t *tree, int type, const char *fu_name, sxl_rpclist_t *rlist; sxl_rpc_t *rentry = NULL; + if(*fu_name == '!') return EINVAL; /* reserve such names for ither purposes */ + node = usrtc_lookup(tree, &type); if(!node) return ENOENT; else tlist = (rpc_typed_list_t *)usrtc_node_getdata(node);