]> andersk Git - openssh.git/blobdiff - channels.c
- (djm) OpenBSD CVS Sync
[openssh.git] / channels.c
index 9f27fa632c648996aadbbd8185cb8f6fc913adf9..7be5778388a634f6b8728711b6c3689fd8d6c90a 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: channels.c,v 1.283 2008/07/10 18:05:58 markus Exp $ */
+/* $OpenBSD: channels.c,v 1.284 2008/07/12 04:52:50 djm Exp $ */
 /*
  * Author: Tatu Ylonen <ylo@cs.hut.fi>
  * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -2865,6 +2865,7 @@ connect_to(const char *host, u_short port, char *ctype, char *rname)
        struct channel_connect cctx;
        Channel *c;
 
+       memset(&cctx, 0, sizeof(cctx));
        memset(&hints, 0, sizeof(hints));
        hints.ai_family = IPv4or6;
        hints.ai_socktype = SOCK_STREAM;
@@ -2875,7 +2876,6 @@ connect_to(const char *host, u_short port, char *ctype, char *rname)
                return NULL;
        }
 
-       memset(&cctx, 0, sizeof(cctx));
        cctx.host = xstrdup(host);
        cctx.port = port;
        cctx.ai = cctx.aitop;
This page took 0.04114 seconds and 4 git commands to generate.