Browse code

- minor mostly cosmetic fix: aliases won't include tcp when tcp is disabled

Andrei Pelinescu-Onciul authored on 10/10/2004 20:14:32
Showing 1 changed files
... ...
@@ -692,13 +692,13 @@ int fix_all_socket_lists()
692 692
 		goto error;
693 693
 	}
694 694
 #ifdef USE_TCP
695
-	if (fix_socket_list(&tcp_listen)!=0){
695
+	if (!tcp_disable && (fix_socket_list(&tcp_listen)!=0)){
696 696
 		LOG(L_ERR, "ERROR: fix_all_socket_lists: fix_socket_list"
697 697
 				" tcp failed\n");
698 698
 		goto error;
699 699
 	}
700 700
 #ifdef USE_TLS
701
-	if (fix_socket_list(&tls_listen)!=0){
701
+	if (!tls_disable && (fix_socket_list(&tls_listen)!=0)){
702 702
 		LOG(L_ERR, "ERROR: fix_all_socket_lists: fix_socket_list"
703 703
 				" tls failed\n");
704 704
 		goto error;