void vnc_sasl_client_cleanup(VncState *vs)

{

    if (vs->sasl.conn) {

        vs->sasl.runSSF = vs->sasl.waitWriteSSF = vs->sasl.wantSSF = 0;

        vs->sasl.encodedLength = vs->sasl.encodedOffset = 0;

        vs->sasl.encoded = NULL;

        g_free(vs->sasl.username);

        free(vs->sasl.mechlist);

        vs->sasl.username = vs->sasl.mechlist = NULL;

        sasl_dispose(&vs->sasl.conn);

        vs->sasl.conn = NULL;

    }

}

void vnc_sasl_client_cleanup(VncState *vs)

{

    if (vs->sasl.conn) {

        vs->sasl.runSSF = vs->sasl.waitWriteSSF = vs->sasl.wantSSF = 0;

        vs->sasl.encodedLength = vs->sasl.encodedOffset = 0;

        vs->sasl.encoded = NULL;

        g_free(vs->sasl.username);

        free(vs->sasl.mechlist);

        vs->sasl.username = vs->sasl.mechlist = NULL;

        sasl_dispose(&vs->sasl.conn);

        vs->sasl.conn = NULL;

    }

}

        free(vs->sasl.mechlist);         sasl_dispose(&vs->sasl.conn);         vs->sasl.conn = NULL;
void FUNC_0(VncState *VAR_0)

{

    if (VAR_0->sasl.conn) {

        VAR_0->sasl.runSSF = VAR_0->sasl.waitWriteSSF = VAR_0->sasl.wantSSF = 0;

        VAR_0->sasl.encodedLength = VAR_0->sasl.encodedOffset = 0;

        VAR_0->sasl.encoded = NULL;

        g_free(VAR_0->sasl.username);

        free(VAR_0->sasl.mechlist);

        VAR_0->sasl.username = VAR_0->sasl.mechlist = NULL;

        sasl_dispose(&VAR_0->sasl.conn);

        VAR_0->sasl.conn = NULL;

    }

}

void FUNC_0(VncState *VAR_0)
{ if (VAR_0->sasl.conn) { VAR_0->sasl.runSSF = VAR_0->sasl.waitWriteSSF = VAR_0->sasl.wantSSF = 0; VAR_0->sasl.encodedLength = VAR_0->sasl.encodedOffset = 0; VAR_0->sasl.encoded = NULL; g_free(VAR_0->sasl.username); free(VAR_0->sasl.mechlist); VAR_0->sasl.username = VAR_0->sasl.mechlist = NULL; sasl_dispose(&VAR_0->sasl.conn); VAR_0->sasl.conn = NULL; } }