+2006-03-09 Miklos Szeredi <miklos@szeredi.hu>
+
+ * Fix segfault if remote host is down and reconnection is enabled
+
2006-03-08 Miklos Szeredi <miklos@szeredi.hu>
* Fix bug in symlink transformation. Reported by Ralf Hoffmann
uint8_t type;
uint32_t version;
struct buffer buf;
+ buf_init(&buf, 0);
if (sftp_send_iov(SSH_FXP_INIT, PROTO_VERSION, NULL, 0) == -1)
goto out;
- buf_init(&buf, 0);
if (sftp_read(&type, &buf) == -1)
goto out;
if (type != SSH_FXP_VERSION) {
req->error = err;
if (!want_reply)
sftp_request_wait(req, type, 0, NULL);
+ else
+ *reqp = req;
return err;
}