mirror of
https://gitlab.uni-freiburg.de/opensourcevdi/spice
synced 2025-12-27 15:45:54 +00:00
Use fd parameter instead of reading file descriptor from reds
Signed-off-by: Frediano Ziglio <fziglio@redhat.com> Acked-by: Uri Lublin <uril@redhat.com>
This commit is contained in:
parent
67eb0edb62
commit
787e886d32
@ -2521,7 +2521,7 @@ static void reds_accept_ssl_connection(int fd, int event, void *data)
|
||||
RedLinkInfo *link;
|
||||
int socket;
|
||||
|
||||
if ((socket = accept(reds->secure_listen_socket, NULL, 0)) == -1) {
|
||||
if ((socket = accept(fd, NULL, 0)) == -1) {
|
||||
spice_warning("accept failed, %s", strerror(errno));
|
||||
return;
|
||||
}
|
||||
@ -2538,7 +2538,7 @@ static void reds_accept(int fd, int event, void *data)
|
||||
RedsState *reds = data;
|
||||
int socket;
|
||||
|
||||
if ((socket = accept(reds->listen_socket, NULL, 0)) == -1) {
|
||||
if ((socket = accept(fd, NULL, 0)) == -1) {
|
||||
spice_warning("accept failed, %s", strerror(errno));
|
||||
return;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user