Browse code

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 authored on 26/05/2010 13:48:59
Showing 1 changed files
... ...
@@ -52,6 +52,7 @@
52 52
 #include "../../timer.h" /* ticks_t */
53 53
 #include "../../tls_hooks.h"
54 54
 #include "../../ut.h"
55
+#include "../../rpc_lookup.h"
55 56
 #include "tls_init.h"
56 57
 #include "tls_server.h"
57 58
 #include "tls_domain.h"
... ...
@@ -337,6 +338,11 @@ static int mod_init(void)
337 338
 
338 339
 	register_tls_hooks(&tls_h);
339 340
 	register_select_table(tls_sel);
341
+	/* register the rpc interface */
342
+	if (rpc_register_array(tls_rpc)!=0) {
343
+		LOG(L_ERR, "failed to register RPC commands\n");
344
+		goto error;
345
+	}
340 346
 
341 347
 	 /* if (init_tls() < 0) return -1; */
342 348