I don't know that this can ever be triggered in the current state of
the code, but when I start mucking around with SSH session closing in
the near future, it may be handy to have it.
git-svn-id: http://svn.tartarus.org/sgt/putty@10076
cda61777-01e9-0310-a592-
d414129be87e
if (ssh->logctx)
log_packet(ssh->logctx, PKT_OUTGOING, -1, NULL, data, len,
0, NULL, NULL);
+ if (!ssh->s)
+ return 0;
return sk_write(ssh->s, (char *)data, len);
}