ssh_state = SSH_STATE_CLOSED; s = NULL;
static int ssh_receive(Socket skt, int urgent, char *data, int len) {    if (urgent==3) {        /* A socket error has occurred. */        connection_fatal(data);        len = 0;    }    if (!len) {	/* Connection has closed. */	ssh_state = SSH_STATE_CLOSED;	sk_close(s);	s = NULL;	return 0;    }    ssh_gotdata (data, len);    if (ssh_state == SSH_STATE_CLOSED) {        if (s) {            sk_close(s);            s = NULL;        }        return 0;    }    return 1;}