Differences From Artifact [3e4042fb0e]:
- File src/OFSCTPSocket.m — part of check-in [98a5cc9eac] at 2024-08-17 21:24:29 on branch trunk — Fix OFSCTPSocket on Solaris (user: js, size: 14303) [annotate] [blame] [check-ins using]
To Artifact [9e13ccf40f]:
- File
src/OFSCTPSocket.m
— part of check-in
[12289e98ac]
at
2024-08-19 22:04:00
on branch trunk
— OFSCTPSocket: Initialize flags for sctp_recvv to 0
This shouldn't be necessary, as flags seems to be output only, but
Valgrind complains if it is uninitialized. (user: js, size: 14307) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
362 363 364 365 366 367 368 | struct iovec iov = { .iov_base = buffer, .iov_len = length }; struct sctp_rcvinfo rcvinfo; socklen_t rcvinfoSize = (socklen_t)sizeof(rcvinfo); unsigned int infotype = SCTP_RECVV_RCVINFO; | | | 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 | struct iovec iov = { .iov_base = buffer, .iov_len = length }; struct sctp_rcvinfo rcvinfo; socklen_t rcvinfoSize = (socklen_t)sizeof(rcvinfo); unsigned int infotype = SCTP_RECVV_RCVINFO; int flags = 0; if (_socket == OFInvalidSocketHandle) @throw [OFNotOpenException exceptionWithObject: self]; if ((ret = sctp_recvv(_socket, &iov, 1, NULL, NULL, &rcvinfo, &rcvinfoSize, &infotype, &flags)) < 0) @throw [OFReadFailedException |
︙ | ︙ |