diff options
author | djm <djm> | 2008-07-12 07:12:29 +0000 |
---|---|---|
committer | djm <djm> | 2008-07-12 07:12:29 +0000 |
commit | 5adeff52a5075ca5ac316d90451a3d1de36be29b (patch) | |
tree | 62afce0b801dcc7cf0e1748fef0e206982df2600 /channels.c | |
parent | 2382a9c896da2c9085d793a1e3919f87975a928c (diff) | |
download | openssh-5adeff52a5075ca5ac316d90451a3d1de36be29b.tar.gz |
- (djm) OpenBSD CVS Sync
- djm@cvs.openbsd.org 2008/07/12 04:52:50
[channels.c]
unbreak; move clearing of cctx struct to before first use
reported by dkrause@
Diffstat (limited to 'channels.c')
-rw-r--r-- | channels.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |