From b019572e73be8f861626943ced1a9e48ebeba838 Mon Sep 17 00:00:00 2001 From: Vic Lee Date: Fri, 1 Jan 2010 12:02:30 +0800 Subject: Add support for viewers to select security types on demand Signed-off-by: Vic Lee Signed-off-by: Johannes Schindelin --- libvncclient/vncviewer.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libvncclient/vncviewer.c') diff --git a/libvncclient/vncviewer.c b/libvncclient/vncviewer.c index 0361827..111a7f6 100644 --- a/libvncclient/vncviewer.c +++ b/libvncclient/vncviewer.c @@ -192,6 +192,7 @@ rfbClient* rfbGetClient(int bitsPerSample,int samplesPerPixel, #endif client->sock = -1; client->listenSock = -1; + client->clientAuthSchemes = NULL; return client; } @@ -341,5 +342,7 @@ void rfbClientCleanup(rfbClient* client) { close(client->listenSock); free(client->desktopName); free(client->serverHost); + if (client->clientAuthSchemes) + free(client->clientAuthSchemes); free(client); } -- cgit v1.2.1