Procházet zdrojové kódy

sctp: if SCTP support not compiled, next_proto() shouldn't return SCTP

- minor fix: if no SCTP support was compiled, init_proto_order() didn't
 remove PROTO_SCTP references and this caused a BUG message on ser start
Andrei Pelinescu-Onciul před 17 roky
rodič
revize
f0bd64366c
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      socket_info.c

+ 1 - 1
socket_info.c

@@ -1458,11 +1458,11 @@ void init_proto_order()
 		}
 #ifdef USE_SCTP
 	if (sctp_disable)
+#endif
 		for(r=PROTO_NONE; r<=PROTO_LAST; r++){
 			if (nxt_proto[r]==PROTO_SCTP)
 				nxt_proto[r]=nxt_proto[PROTO_SCTP];
 		}
-#endif
 }