]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Eliminate a "possible unintended assignment" warning.
authorBen Harris <bjh21@bjh21.me.uk>
Sat, 10 May 2003 11:50:18 +0000 (11:50 +0000)
committerBen Harris <bjh21@bjh21.me.uk>
Sat, 10 May 2003 11:50:18 +0000 (11:50 +0000)
[originally from svn r3179]

proxy.c

diff --git a/proxy.c b/proxy.c
index 42b713e5617815ddef03c6865c795f3e5180cbdb..2c0554ad6de5aa27c048e670e7e8d7ac0e936324 100644 (file)
--- a/proxy.c
+++ b/proxy.c
@@ -387,8 +387,9 @@ Socket new_connection(SockAddr addr, char *hostname,
        char *proxy_canonical_name;
        Socket sret;
 
-       if ( (sret = platform_new_connection(addr, hostname, port, privport,
-                                            oobinline, nodelay, plug, cfg)) )
+       if ((sret = platform_new_connection(addr, hostname, port, privport,
+                                           oobinline, nodelay, plug, cfg)) !=
+           NULL)
            return sret;
 
        ret = snew(struct Socket_proxy_tag);