X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/5471d09ad63fc6216fb9c2a3b52ca9c93821a054..90347b9527cc009b4da82d66e758186e8d34da25:/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);