Browse Source

permissions: fix build without -DUSE_IPV6 errors

Author: Vance Shipley <[email protected]>
Committer: Andrei Pelinescu-Onciul <[email protected]>
Andrei Pelinescu-Onciul 17 năm trước cách đây
mục cha
commit
1991a5dc7c
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      modules_s/permissions/ip_set_rpc.c

+ 2 - 0
modules_s/permissions/ip_set_rpc.c

@@ -274,8 +274,10 @@ void rpc_ip_set_print(rpc_t* rpc, void* ctx) {
 	rpc->add(ctx, "{", &c);
 	if (rpc->struct_add(c, "s", "IPv", "6") < 0) 
 		goto err;	
+#ifdef USE_IPV6
 	if (rpc_ip_tree_print(rpc, c, "", ip_set->ipv6_tree, 0) < 0) 
 		goto err;
+#endif
 
 err:		
 	if (pending)