summaryrefslogtreecommitdiff
path: root/sshbuf.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2014-07-02 15:29:21 +1000
committerDamien Miller <djm@mindrot.org>2014-07-02 15:29:21 +1000
commit9e01ff28664921ce9b6500681333e42fb133b4d0 (patch)
tree21116087bd1e9baea33c2ceba33c732c1a043846 /sshbuf.c
parent1845fe6bda0729e52f4c645137f4fc3070b5438a (diff)
- deraadt@cvs.openbsd.org 2014/06/25 14:16:09
[sshbuf.c] unblock SIGSEGV before raising it ok djm
Diffstat (limited to 'sshbuf.c')
-rw-r--r--sshbuf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sshbuf.c b/sshbuf.c
index 7f7b9f1da..5df7c9f46 100644
--- a/sshbuf.c
+++ b/sshbuf.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: sshbuf.c,v 1.1 2014/04/30 05:29:56 djm Exp $ */ 1/* $OpenBSD: sshbuf.c,v 1.2 2014/06/25 14:16:09 deraadt Exp $ */
2/* 2/*
3 * Copyright (c) 2011 Damien Miller 3 * Copyright (c) 2011 Damien Miller
4 * 4 *
@@ -53,6 +53,7 @@ sshbuf_check_sanity(const struct sshbuf *buf)
53 buf->off > buf->size)) { 53 buf->off > buf->size)) {
54 /* Do not try to recover from corrupted buffer internals */ 54 /* Do not try to recover from corrupted buffer internals */
55 SSHBUF_DBG(("SSH_ERR_INTERNAL_ERROR")); 55 SSHBUF_DBG(("SSH_ERR_INTERNAL_ERROR"));
56 signal(SIGSEGV, SIG_DFL);
56 raise(SIGSEGV); 57 raise(SIGSEGV);
57 return SSH_ERR_INTERNAL_ERROR; 58 return SSH_ERR_INTERNAL_ERROR;
58 } 59 }