Diff

Differences From Artifact [9c107b7290]:

To Artifact [02195c6ae4]:


2513
2514
2515
2516
2517
2518
2519



2520
2521
2522
2523
2524
2525
2526
2527
2528
2529
2530
2531
2532
2533
2534
2535
    Ssh ssh = (Ssh) plug;
    int need_notify = ssh_do_close(ssh, FALSE);

    if (!error_msg && !ssh->close_expected) {
        error_msg = "Server unexpectedly closed network connection";
    }




    if (error_msg) {
	/* A socket error has occurred. */
	logevent(error_msg);
	connection_fatal(ssh->frontend, "%s", error_msg);
    } else {
        logevent("Server closed network connection");
    }
    if (need_notify)
        notify_remote_exit(ssh->frontend);
    return 0;
}

static int ssh_receive(Plug plug, int urgent, char *data, int len)
{
    Ssh ssh = (Ssh) plug;
    ssh_gotdata(ssh, (unsigned char *)data, len);







>
>
>







<
<







2513
2514
2515
2516
2517
2518
2519
2520
2521
2522
2523
2524
2525
2526
2527
2528
2529


2530
2531
2532
2533
2534
2535
2536
    Ssh ssh = (Ssh) plug;
    int need_notify = ssh_do_close(ssh, FALSE);

    if (!error_msg && !ssh->close_expected) {
        error_msg = "Server unexpectedly closed network connection";
    }

    if (need_notify)
        notify_remote_exit(ssh->frontend);

    if (error_msg) {
	/* A socket error has occurred. */
	logevent(error_msg);
	connection_fatal(ssh->frontend, "%s", error_msg);
    } else {
        logevent("Server closed network connection");
    }


    return 0;
}

static int ssh_receive(Plug plug, int urgent, char *data, int len)
{
    Ssh ssh = (Ssh) plug;
    ssh_gotdata(ssh, (unsigned char *)data, len);