summaryrefslogtreecommitdiff
path: root/ssh.c
diff options
context:
space:
mode:
authorotto@openbsd.org <otto@openbsd.org>2019-06-06 05:13:13 +0000
committerDarren Tucker <dtucker@dtucker.net>2019-06-08 00:25:42 +1000
commit0323d9b619d512f80c57575b810a05791891f657 (patch)
tree6bde14513c6fe9ff37d069325ee6baac112b6b60 /ssh.c
parentc586d2d3129265ea64b12960c379d634bccb6535 (diff)
upstream: Replace calls to ssh_malloc_init() by a static init of
malloc_options. Prepares for changes in the way malloc is initialized. ok guenther@ dtucker@ OpenBSD-Commit-ID: 154f4e3e174f614b09f792d4d06575e08de58a6b
Diffstat (limited to 'ssh.c')
-rw-r--r--ssh.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ssh.c b/ssh.c
index f46a3b262..d8d614111 100644
--- a/ssh.c
+++ b/ssh.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssh.c,v 1.501 2019/04/23 11:56:41 dtucker Exp $ */ 1/* $OpenBSD: ssh.c,v 1.502 2019/06/06 05:13:13 otto 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
@@ -596,7 +596,6 @@ main(int ac, char **av)
596 struct ssh_digest_ctx *md; 596 struct ssh_digest_ctx *md;
597 u_char conn_hash[SSH_DIGEST_MAX_LENGTH]; 597 u_char conn_hash[SSH_DIGEST_MAX_LENGTH];
598 598
599 ssh_malloc_init(); /* must be called before any mallocs */
600 /* Ensure that fds 0, 1 and 2 are open or directed to /dev/null */ 599 /* Ensure that fds 0, 1 and 2 are open or directed to /dev/null */
601 sanitise_stdfd(); 600 sanitise_stdfd();
602 601