projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
08f4a0f
)
slirp: Properly initialize pollfds_idx of new sockets
author
Jan Kiszka
<jan.kiszka@siemens.com>
Fri, 22 Feb 2013 19:47:10 +0000
(20:47 +0100)
committer
Jan Kiszka
<jan.kiszka@siemens.com>
Tue, 26 Feb 2013 11:10:21 +0000
(12:10 +0100)
Otherwise we may start processing sockets in slirp_pollfds_poll that
were created past slirp_pollfds_fill.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
slirp/socket.c
patch
|
blob
|
history
diff --git
a/slirp/socket.c
b/slirp/socket.c
index a7ab933c4359fddb47be926cd3a8ca23b62df733..bb639aed9c3e4875f85af75e08c0766d6a4301b4 100644
(file)
--- a/
slirp/socket.c
+++ b/
slirp/socket.c
@@
-51,6
+51,7
@@
socreate(Slirp *slirp)
so->so_state = SS_NOFDREF;
so->s = -1;
so->slirp = slirp;
+ so->pollfds_idx = -1;
}
return(so);
}