From af3a9a01e1b85807a01689273c24f63ed121134a Mon Sep 17 00:00:00 2001 From: tuexen Date: Mon, 6 Aug 2012 10:50:23 +0000 Subject: Fix a bug found by dim@: Don't use an uninitilized variable, if INVARIANTS is on and an illegal packet with destination 0 is received. MFC after: 3 days X-MFC with: 238003 --- sys/netinet/sctp_input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/netinet') diff --git a/sys/netinet/sctp_input.c b/sys/netinet/sctp_input.c index 3263efb..f3189f6 100644 --- a/sys/netinet/sctp_input.c +++ b/sys/netinet/sctp_input.c @@ -5600,7 +5600,7 @@ sctp_common_input_processing(struct mbuf **mm, int iphlen, int offset, int lengt struct mbuf *m = *mm; int un_sent; int cnt_ctrl_ready = 0; - struct sctp_inpcb *inp, *inp_decr = NULL; + struct sctp_inpcb *inp = NULL, *inp_decr = NULL; struct sctp_tcb *stcb = NULL; struct sctp_nets *net = NULL; -- cgit v1.1