if (pr->buffer) { sshfwd_write(pr->c, pr->buffer, pr->buflen); sfree(pr->buffer); pr->buffer = NULL; }
void pfd_confirm(Socket s){    struct PFwdPrivate *pr;    if (s == NULL)	return;    pr = (struct PFwdPrivate *) sk_get_private_ptr(s);    pr->ready = 1;    sk_set_frozen(s, 0);    sk_write(s, NULL, 0);}