2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-30 22:05:19 +00:00

stream-ssl: Fix call to accept().

GCC and glibc conspire to allow struct sockaddr_in * to be passed in
place of struct sockaddr *, but that's non-standard and we're better
off not taking advantage of it.

Found by sparse.
This commit is contained in:
Ben Pfaff
2011-05-04 15:46:27 -07:00
parent 35fe11834c
commit c5530655f3

View File

@@ -919,7 +919,7 @@ pssl_accept(struct pstream *pstream, struct stream **new_streamp)
int new_fd;
int error;
new_fd = accept(pssl->fd, &sin, &sin_len);
new_fd = accept(pssl->fd, (struct sockaddr *) &sin, &sin_len);
if (new_fd < 0) {
error = errno;
if (error != EAGAIN) {