Przeglądaj źródła

core: fix bitwise test for priting socket details

(cherry picked from commit 18b996262fb1c7bde94b494ce837754dc82c9e7e)
Daniel-Constantin Mierla 8 lat temu
rodzic
commit
e23e875be6
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      src/core/socket_info.c

+ 1 - 1
src/core/socket_info.c

@@ -1912,7 +1912,7 @@ void print_all_socket_lists()
 				printf("             %s: %s",
 						get_valid_proto_name(proto),
 						si->name.s);
-				if (!si->flags & SI_IS_IP)
+				if (!(si->flags & SI_IS_IP))
 					printf(" [%s]", si->address_str.s);
 				printf( ":%s%s%s",
 						si->port_no_str.s,