diff options
author | tuexen <tuexen@FreeBSD.org> | 2012-08-06 10:50:23 +0000 |
---|---|---|
committer | tuexen <tuexen@FreeBSD.org> | 2012-08-06 10:50:23 +0000 |
commit | af3a9a01e1b85807a01689273c24f63ed121134a (patch) | |
tree | b3fb52e231ff07e00a7bfcc1a174a8e1ece3cef2 /sys/netinet | |
parent | 3d029674e79be90726a7259f1f931a96f2c98f25 (diff) | |
download | FreeBSD-src-af3a9a01e1b85807a01689273c24f63ed121134a.zip FreeBSD-src-af3a9a01e1b85807a01689273c24f63ed121134a.tar.gz |
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
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/sctp_input.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |