diff options
| author | Michael Tuexen <tuexen@FreeBSD.org> | 2014-08-12 11:30:16 +0000 |
|---|---|---|
| committer | Michael Tuexen <tuexen@FreeBSD.org> | 2014-08-12 11:30:16 +0000 |
| commit | c79bec9c7509f55bcc0a9e30de53a6cb26b94605 (patch) | |
| tree | 7ef739646c46ae494ecad5800859e26e929df435 /lib/libc/net | |
| parent | 36b16d1f7d1bb7fba28a92aaf802bf4cfbfbb41f (diff) | |
Notes
Diffstat (limited to 'lib/libc/net')
| -rw-r--r-- | lib/libc/net/sctp_sys_calls.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/libc/net/sctp_sys_calls.c b/lib/libc/net/sctp_sys_calls.c index 8e7d709c29fb..6a57061a7046 100644 --- a/lib/libc/net/sctp_sys_calls.c +++ b/lib/libc/net/sctp_sys_calls.c @@ -356,6 +356,12 @@ sctp_opt_info(int sd, sctp_assoc_t id, int opt, void *arg, socklen_t * size) case SCTP_PR_SUPPORTED: ((struct sctp_assoc_value *)arg)->assoc_id = id; break; + case SCTP_AUTH_SUPPORTED: + ((struct sctp_assoc_value *)arg)->assoc_id = id; + break; + case SCTP_ASCONF_SUPPORTED: + ((struct sctp_assoc_value *)arg)->assoc_id = id; + break; case SCTP_RECONFIG_SUPPORTED: ((struct sctp_assoc_value *)arg)->assoc_id = id; break; @@ -590,6 +596,7 @@ sctp_sendmsg(int s, cmsg->cmsg_type = SCTP_SNDRCV; cmsg->cmsg_len = CMSG_LEN(sizeof(struct sctp_sndrcvinfo)); sinfo = (struct sctp_sndrcvinfo *)CMSG_DATA(cmsg); + memset(sinfo, 0, sizeof(struct sctp_sndrcvinfo)); sinfo->sinfo_stream = stream_no; sinfo->sinfo_ssn = 0; sinfo->sinfo_flags = flags; |
