summaryrefslogtreecommitdiffstats
path: root/crypto/openssh/xmalloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/openssh/xmalloc.c')
-rw-r--r--crypto/openssh/xmalloc.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/crypto/openssh/xmalloc.c b/crypto/openssh/xmalloc.c
index 98cbf87..b583236 100644
--- a/crypto/openssh/xmalloc.c
+++ b/crypto/openssh/xmalloc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: xmalloc.c,v 1.32 2015/04/24 01:36:01 deraadt Exp $ */
+/* $OpenBSD: xmalloc.c,v 1.33 2016/02/15 09:47:49 dtucker Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -26,6 +26,16 @@
#include "xmalloc.h"
#include "log.h"
+void
+ssh_malloc_init(void)
+{
+#if defined(__OpenBSD__)
+ extern char *malloc_options;
+
+ malloc_options = "S";
+#endif /* __OpenBSD__ */
+}
+
void *
xmalloc(size_t size)
{
OpenPOWER on IntegriCloud