summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/sshbuf.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2014-06-25 14:16:09 +0000
committerderaadt <deraadt@openbsd.org>2014-06-25 14:16:09 +0000
commite2862f1c898f37fb9e50fbb23c3f8e3b1901da21 (patch)
treed6ba5ba093ebc9753faeee1d7773279b450a33e5 /usr.bin/ssh/sshbuf.c
parentensure rc.d/nsd uses a correct exit code as per rc.subr(8); reported by (diff)
downloadwireguard-openbsd-e2862f1c898f37fb9e50fbb23c3f8e3b1901da21.tar.xz
wireguard-openbsd-e2862f1c898f37fb9e50fbb23c3f8e3b1901da21.zip
unblock SIGSEGV before raising it
ok djm
Diffstat (limited to 'usr.bin/ssh/sshbuf.c')
-rw-r--r--usr.bin/ssh/sshbuf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/ssh/sshbuf.c b/usr.bin/ssh/sshbuf.c
index bb1583b237d..0f23a71ede2 100644
--- a/usr.bin/ssh/sshbuf.c
+++ b/usr.bin/ssh/sshbuf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sshbuf.c,v 1.1 2014/04/30 05:29:56 djm Exp $ */
+/* $OpenBSD: sshbuf.c,v 1.2 2014/06/25 14:16:09 deraadt Exp $ */
/*
* Copyright (c) 2011 Damien Miller
*
@@ -41,6 +41,7 @@ sshbuf_check_sanity(const struct sshbuf *buf)
buf->off > buf->size)) {
/* Do not try to recover from corrupted buffer internals */
SSHBUF_DBG(("SSH_ERR_INTERNAL_ERROR"));
+ signal(SIGSEGV, SIG_DFL);
raise(SIGSEGV);
return SSH_ERR_INTERNAL_ERROR;
}