Explorar o código

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 %!s(int64=17) %!d(string=hai) anos
pai
achega
f0bd64366c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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
 }