X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/724cface99da781732deea697cf23c03bb582dda..b5a460cd83278adac0227730190aa1cacb786df6:/rlogin.c diff --git a/rlogin.c b/rlogin.c index 5c55d5a1..a2199cf5 100644 --- a/rlogin.c +++ b/rlogin.c @@ -137,9 +137,8 @@ static char *rlogin_init(char *host, int port, char **realhost) */ static int rlogin_send(char *buf, int len) { - if (s == NULL) - return; + return 0; rlogin_bufsize = sk_write(s, buf, len);