X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/4a8fc3c43e71f1500b1f1203431ce944a832110e..0d694692c59504838ec2043ddfe670b3a9247faf:/sftp.c diff --git a/sftp.c b/sftp.c index abd940a4..e7b84412 100644 --- a/sftp.c +++ b/sftp.c @@ -286,6 +286,10 @@ int fxp_init(void) { sftp_send(pktout); pktin = sftp_recv(); + if (!pktin) { + fxp_internal_error("could not connect"); + return 0; + } if (pktin->type != SSH_FXP_VERSION) { fxp_internal_error("did not receive FXP_VERSION"); return 0;