diff options
author | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-11 20:00:17 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-11 20:00:17 -0500 |
commit | 508862e493f1107d17fa5a0015084b1773ffc41e (patch) | |
tree | a7c619335bb2f852b1b7c3b8760552eb6f4890bc /net/sctp/protocol.c | |
parent | 9cf93d7b2f4516271ccf5b48f958bd474cf9dd67 (diff) | |
parent | 049b3ff5a86d0187184a189d2e31b8654d58fe22 (diff) |
Merge master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
Diffstat (limited to 'net/sctp/protocol.c')
-rw-r--r-- | net/sctp/protocol.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/net/sctp/protocol.c b/net/sctp/protocol.c index 26de4d3e1bd9..f775d78aa59d 100644 --- a/net/sctp/protocol.c +++ b/net/sctp/protocol.c | |||
@@ -530,6 +530,9 @@ static void sctp_v4_get_saddr(struct sctp_association *asoc, | |||
530 | { | 530 | { |
531 | struct rtable *rt = (struct rtable *)dst; | 531 | struct rtable *rt = (struct rtable *)dst; |
532 | 532 | ||
533 | if (!asoc) | ||
534 | return; | ||
535 | |||
533 | if (rt) { | 536 | if (rt) { |
534 | saddr->v4.sin_family = AF_INET; | 537 | saddr->v4.sin_family = AF_INET; |
535 | saddr->v4.sin_port = asoc->base.bind_addr.port; | 538 | saddr->v4.sin_port = asoc->base.bind_addr.port; |
@@ -1047,6 +1050,9 @@ SCTP_STATIC __init int sctp_init(void) | |||
1047 | /* Sendbuffer growth - do per-socket accounting */ | 1050 | /* Sendbuffer growth - do per-socket accounting */ |
1048 | sctp_sndbuf_policy = 0; | 1051 | sctp_sndbuf_policy = 0; |
1049 | 1052 | ||
1053 | /* Rcvbuffer growth - do per-socket accounting */ | ||
1054 | sctp_rcvbuf_policy = 0; | ||
1055 | |||
1050 | /* HB.interval - 30 seconds */ | 1056 | /* HB.interval - 30 seconds */ |
1051 | sctp_hb_interval = SCTP_DEFAULT_TIMEOUT_HEARTBEAT; | 1057 | sctp_hb_interval = SCTP_DEFAULT_TIMEOUT_HEARTBEAT; |
1052 | 1058 | ||