=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ssh/channels.c,v retrieving revision 1.326 retrieving revision 1.327 diff -u -r1.326 -r1.327 --- src/usr.bin/ssh/channels.c 2013/09/19 01:24:46 1.326 +++ src/usr.bin/ssh/channels.c 2013/11/08 00:39:15 1.327 @@ -1,4 +1,4 @@ -/* $OpenBSD: channels.c,v 1.326 2013/09/19 01:24:46 djm Exp $ */ +/* $OpenBSD: channels.c,v 1.327 2013/11/08 00:39:15 djm Exp $ */ /* * Author: Tatu Ylonen * Copyright (c) 1995 Tatu Ylonen , Espoo, Finland @@ -696,7 +696,7 @@ if ((c = channel_lookup(id)) == NULL) fatal("channel_register_expect: %d: bad id", id); - cc = xmalloc(sizeof(*cc)); + cc = xcalloc(1, sizeof(*cc)); cc->cb = cb; cc->abandon_cb = abandon_cb; cc->ctx = ctx;