X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/5471d09ad63fc6216fb9c2a3b52ca9c93821a054..92f157bd6429ae0526d549db3e727c1ad824a319:/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);