Skip to content

Commit 7be47a2

Browse files
committed
libvncserver: httpd: make rfbHttpShutdownSockets() idempotent
1 parent 41dcae8 commit 7be47a2

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/libvncserver/httpd.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,8 @@ void rfbHttpShutdownSockets(rfbScreenInfoPtr rfbScreen) {
161161
LOCK(cl.refCountMutex);
162162
UNLOCK(cl.refCountMutex);
163163
TINI_MUTEX(cl.refCountMutex);
164+
165+
memset(&cl, 0, sizeof(rfbClientRec));
164166
}
165167

166168
/*

0 commit comments

Comments
 (0)