projects
/
openvswitch
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
35fe118
)
stream-ssl: Fix call to accept().
author
Ben Pfaff
<blp@nicira.com>
Wed, 4 May 2011 22:46:27 +0000
(15:46 -0700)
committer
Ben Pfaff
<blp@nicira.com>
Mon, 16 May 2011 20:40:46 +0000
(13:40 -0700)
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.
lib/stream-ssl.c
patch
|
blob
|
history
diff --git
a/lib/stream-ssl.c
b/lib/stream-ssl.c
index 977c5ba61cf2c940ea45ea8a62493baed9885cdb..02ce7f5651d0c220da475be2342f9f77a0c7fb4f 100644
(file)
--- a/
lib/stream-ssl.c
+++ b/
lib/stream-ssl.c
@@
-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) {