Pārlūkot izejas kodu

tls: fix unregistered rpc commands

In the process of merging the tls modules with some k tls PVs the
module interface was changed, leaving the rpc functions
un-registered (and hence unaccessible).
(cherry picked from commit 577ccb71e7a1e113cacd74b19c8174ea2e9bacb6)
Andrei Pelinescu-Onciul 15 gadi atpakaļ
vecāks
revīzija
dea34883a9
1 mainītis faili ar 6 papildinājumiem un 0 dzēšanām
  1. 6 0
      modules/tls/tls_mod.c

+ 6 - 0
modules/tls/tls_mod.c

@@ -52,6 +52,7 @@
 #include "../../timer.h" /* ticks_t */
 #include "../../tls_hooks.h"
 #include "../../ut.h"
+#include "../../rpc_lookup.h"
 #include "tls_init.h"
 #include "tls_server.h"
 #include "tls_domain.h"
@@ -337,6 +338,11 @@ static int mod_init(void)
 
 	register_tls_hooks(&tls_h);
 	register_select_table(tls_sel);
+	/* register the rpc interface */
+	if (rpc_register_array(tls_rpc)!=0) {
+		LOG(L_ERR, "failed to register RPC commands\n");
+		goto error;
+	}
 
 	 /* if (init_tls() < 0) return -1; */