Browse code

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 authored on 14/10/2008 14:13:14
Showing 1 changed files
... ...
@@ -1458,11 +1458,11 @@ void init_proto_order()
1458 1458
 		}
1459 1459
 #ifdef USE_SCTP
1460 1460
 	if (sctp_disable)
1461
+#endif
1461 1462
 		for(r=PROTO_NONE; r<=PROTO_LAST; r++){
1462 1463
 			if (nxt_proto[r]==PROTO_SCTP)
1463 1464
 				nxt_proto[r]=nxt_proto[PROTO_SCTP];
1464 1465
 		}
1465
-#endif
1466 1466
 }
1467 1467
 
1468 1468