diff options
-rw-r--r-- | channels.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/channels.c b/channels.c index c85d46abd..6d2e1c6a6 100644 --- a/channels.c +++ b/channels.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: channels.c,v 1.386 2018/10/04 01:04:52 djm Exp $ */ | 1 | /* $OpenBSD: channels.c,v 1.387 2018/12/07 02:31:20 djm Exp $ */ |
2 | /* | 2 | /* |
3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> | 3 | * Author: Tatu Ylonen <ylo@cs.hut.fi> |
4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland | 4 | * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
@@ -227,11 +227,7 @@ channel_init_channels(struct ssh *ssh) | |||
227 | { | 227 | { |
228 | struct ssh_channels *sc; | 228 | struct ssh_channels *sc; |
229 | 229 | ||
230 | if ((sc = calloc(1, sizeof(*sc))) == NULL || | 230 | if ((sc = calloc(1, sizeof(*sc))) == NULL) |
231 | (sc->channel_pre = calloc(SSH_CHANNEL_MAX_TYPE, | ||
232 | sizeof(*sc->channel_pre))) == NULL || | ||
233 | (sc->channel_post = calloc(SSH_CHANNEL_MAX_TYPE, | ||
234 | sizeof(*sc->channel_post))) == NULL) | ||
235 | fatal("%s: allocation failed", __func__); | 231 | fatal("%s: allocation failed", __func__); |
236 | sc->channels_alloc = 10; | 232 | sc->channels_alloc = 10; |
237 | sc->channels = xcalloc(sc->channels_alloc, sizeof(*sc->channels)); | 233 | sc->channels = xcalloc(sc->channels_alloc, sizeof(*sc->channels)); |