Sfoglia il codice sorgente

core: fix bitwise test for priting socket details

Daniel-Constantin Mierla 8 anni fa
parent
commit
18b996262f
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/core/socket_info.c

+ 1 - 1
src/core/socket_info.c

@@ -1913,7 +1913,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,