From 4789f485812c1a51f22d75584988c279b38fcd30 Mon Sep 17 00:00:00 2001 From: Wei Yongjun Date: Tue, 7 Apr 2009 16:35:11 +0800 Subject: [PATCH] --- yaml --- r: 150624 b: refs/heads/master c: a2c395846cf6abfdda3c04a19a0982adbb6469c2 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/net/sctp/associola.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 8688b41fe6ba..40167a61e8c5 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 4553e88d876e7eb29db3e8f632101398900d2194 +refs/heads/master: a2c395846cf6abfdda3c04a19a0982adbb6469c2 diff --git a/trunk/net/sctp/associola.c b/trunk/net/sctp/associola.c index f4b23043b610..e7b69a7360e2 100644 --- a/trunk/net/sctp/associola.c +++ b/trunk/net/sctp/associola.c @@ -293,7 +293,8 @@ static struct sctp_association *sctp_association_init(struct sctp_association *a * told otherwise. */ asoc->peer.ipv4_address = 1; - asoc->peer.ipv6_address = 1; + if (asoc->base.sk->sk_family == PF_INET6) + asoc->peer.ipv6_address = 1; INIT_LIST_HEAD(&asoc->asocs); asoc->autoclose = sp->autoclose;