Index: sctp_sys_calls.c =================================================================== RCS file: /data/cvs/src/lib/libc/net/sctp_sys_calls.c,v retrieving revision 1.9 diff -u -r1.9 sctp_sys_calls.c --- sctp_sys_calls.c 22 Jun 2007 13:59:54 -0000 1.9 +++ sctp_sys_calls.c 23 Jun 2007 07:42:02 -0000 @@ -205,7 +205,8 @@ } if (len > (sizeof(buf) - sizeof(int))) { /* Never enough memory */ - return (E2BIG); + errno = E2BIG; + return (-1); } at = (struct sockaddr *)((caddr_t)at + at->sa_len); cnt++; @@ -315,7 +316,6 @@ errno = ENOMEM; return (-1); } - memset(addrs, 0, siz); addrs->sget_assoc_id = id; /* Now lets get the array of addresses */ if (getsockopt(sd, IPPROTO_SCTP, SCTP_GET_PEER_ADDRESSES, @@ -380,7 +380,6 @@ errno = ENOMEM; return (-1); } - memset(addrs, 0, siz); addrs->sget_assoc_id = id; /* Now lets get the array of addresses */ if (getsockopt(sd, IPPROTO_SCTP, SCTP_GET_LOCAL_ADDRESSES, addrs,