missing bzero; from mickey; ok djm@
authormarkus <markus@openbsd.org>
Thu, 10 Jul 2008 18:05:58 +0000 (18:05 +0000)
committermarkus <markus@openbsd.org>
Thu, 10 Jul 2008 18:05:58 +0000 (18:05 +0000)
usr.bin/ssh/channels.c

index 50f01b9..3fdf847 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: channels.c,v 1.282 2008/06/16 13:22:53 dtucker Exp $ */
+/* $OpenBSD: channels.c,v 1.283 2008/07/10 18:05:58 markus Exp $ */
 /*
  * Author: Tatu Ylonen <ylo@cs.hut.fi>
  * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -2847,6 +2847,7 @@ 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;