svn commit: r257274 - head/sys/netinet

Michael Tuexen tuexen at FreeBSD.org
Mon Oct 28 20:45:19 UTC 2013


Author: tuexen
Date: Mon Oct 28 20:45:19 2013
New Revision: 257274
URL: http://svnweb.freebsd.org/changeset/base/257274

Log:
  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

Modified:
  head/sys/netinet/sctp_usrreq.c

Modified: head/sys/netinet/sctp_usrreq.c
==============================================================================
--- head/sys/netinet/sctp_usrreq.c	Mon Oct 28 20:38:17 2013	(r257273)
+++ head/sys/netinet/sctp_usrreq.c	Mon Oct 28 20:45:19 2013	(r257274)
@@ -3281,7 +3281,7 @@ flags_out:
 				}
 			}
 			if (error == 0) {
-				*optsize = sizeof(struct sctp_paddrparams);
+				*optsize = sizeof(struct sctp_udpencaps);
 			}
 			break;
 		}


More information about the svn-src-head mailing list