Author: tuexen
Date: Wed May 14 17:01:31 2014
New Revision: 266049
URL: http://svnweb.freebsd.org/changeset/base/266049

Log:
  MFC r257274:
  
  Fis the value of *optlen when calling getsockopt() for
  SCTP_REMOTE_UDP_ENCAPS_PORT.
  This issue was reported by Andrew Galante.

Modified:
  stable/9/sys/netinet/sctp_usrreq.c
Directory Properties:
  stable/9/sys/   (props changed)

Modified: stable/9/sys/netinet/sctp_usrreq.c
==============================================================================
--- stable/9/sys/netinet/sctp_usrreq.c  Wed May 14 16:59:32 2014        
(r266048)
+++ stable/9/sys/netinet/sctp_usrreq.c  Wed May 14 17:01:31 2014        
(r266049)
@@ -3281,7 +3281,7 @@ flags_out:
                                }
                        }
                        if (error == 0) {
-                               *optsize = sizeof(struct sctp_paddrparams);
+                               *optsize = sizeof(struct sctp_udpencaps);
                        }
                        break;
                }
_______________________________________________
svn-src-stable-9@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-stable-9
To unsubscribe, send any mail to "svn-src-stable-9-unsubscr...@freebsd.org"

Reply via email to