aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Tuexen <tuexen@FreeBSD.org>2013-10-28 20:45:19 +0000
committerMichael Tuexen <tuexen@FreeBSD.org>2013-10-28 20:45:19 +0000
commit92dfa76cbc92a7246673abfbb5eee9eb255c614f (patch)
tree21dfb6270c3c32f38caa893e843fcc2135104d69
parentd5814e82fae40ef74b110f7a11a7a2d342ddbda8 (diff)
Fis the value of *optlen when calling getsockopt() for
SCTP_REMOTE_UDP_ENCAPS_PORT. This issue was reported by Andrew Galante. MFC after: 3 days
Notes
svn path=/head/; revision=257274
-rw-r--r--sys/netinet/sctp_usrreq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/sctp_usrreq.c b/sys/netinet/sctp_usrreq.c
index 90a9b800e5a0..fa57d13196a4 100644
--- a/sys/netinet/sctp_usrreq.c
+++ b/sys/netinet/sctp_usrreq.c
@@ -3281,7 +3281,7 @@ flags_out:
}
}
if (error == 0) {
- *optsize = sizeof(struct sctp_paddrparams);
+ *optsize = sizeof(struct sctp_udpencaps);
}
break;
}