[glib: 2/3] gsocket: Don't call WSAEnumNetworkEvents if socket is closed
- From: Sebastian Dröge <sdroege src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 2/3] gsocket: Don't call WSAEnumNetworkEvents if socket is closed
- Date: Wed, 6 Jan 2021 08:42:02 +0000 (UTC)
commit 17c53b5f162dab2b4be76adb6bbd432c266791d4
Author: Ole André Vadla Ravnås <oleavr gmail com>
Date: Sun Sep 26 15:06:25 2010 +0200
gsocket: Don't call WSAEnumNetworkEvents if socket is closed
Makes Application Verifier happy.
gio/gsocket.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/gio/gsocket.c b/gio/gsocket.c
index e128c91b8..e71315d17 100644
--- a/gio/gsocket.c
+++ b/gio/gsocket.c
@@ -3851,7 +3851,8 @@ update_condition_unlocked (GSocket *socket)
WSANETWORKEVENTS events;
GIOCondition condition;
- if (WSAEnumNetworkEvents (socket->priv->fd,
+ if (!socket->priv->closed &&
+ WSAEnumNetworkEvents (socket->priv->fd,
socket->priv->event,
&events) == 0)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]