diff options
author | tuexen <tuexen@FreeBSD.org> | 2011-06-16 17:30:50 +0000 |
---|---|---|
committer | tuexen <tuexen@FreeBSD.org> | 2011-06-16 17:30:50 +0000 |
commit | 30391f29baccc63c33ab14e87503fc6763612f29 (patch) | |
tree | 58e1df4d9045f06604b62e41e6ae102b8755be8c /lib/libc | |
parent | 7c8a74495baf6c34ef91c68c14f2073c02a19e18 (diff) | |
download | FreeBSD-src-30391f29baccc63c33ab14e87503fc6763612f29.zip FreeBSD-src-30391f29baccc63c33ab14e87503fc6763612f29.tar.gz |
Fix two typos and remove redundant code.
MFC after: 1 month.
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/net/sctp_sys_calls.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/libc/net/sctp_sys_calls.c b/lib/libc/net/sctp_sys_calls.c index c43243b..ad7b331 100644 --- a/lib/libc/net/sctp_sys_calls.c +++ b/lib/libc/net/sctp_sys_calls.c @@ -1035,8 +1035,8 @@ sctp_sendv(int sd, if ((addrcnt < 0) || (iovcnt < 0) || - ((addr == NULL) && (addrcnt > 0)) || - ((addr != NULL) && (addrcnt == 0)) || + ((addrs == NULL) && (addrcnt > 0)) || + ((addrs != NULL) && (addrcnt == 0)) || ((iov == NULL) && (iovcnt > 0)) || ((iov != NULL) && (iovcnt == 0))) { errno = EINVAL; @@ -1207,9 +1207,6 @@ sctp_sendv(int sd, if (msg.msg_controllen == 0) { msg.msg_control = NULL; } - if (msg.msg_controllen == 0) { - msg.msg_control = NULL; - } msg.msg_iov = (struct iovec *)iov; msg.msg_iovlen = iovcnt; msg.msg_flags = 0; |