=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ssh/channels.c,v retrieving revision 1.283 retrieving revision 1.284 diff -u -r1.283 -r1.284 --- src/usr.bin/ssh/channels.c 2008/07/10 18:05:58 1.283 +++ src/usr.bin/ssh/channels.c 2008/07/12 04:52:50 1.284 @@ -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 * Copyright (c) 1995 Tatu Ylonen , Espoo, Finland @@ -2837,6 +2837,7 @@ 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; @@ -2847,7 +2848,6 @@ return NULL; } - memset(&cctx, 0, sizeof(cctx)); cctx.host = xstrdup(host); cctx.port = port; cctx.ai = cctx.aitop;