summaryrefslogtreecommitdiff
path: root/ssherr.c
diff options
context:
space:
mode:
authordjm@openbsd.org <djm@openbsd.org>2015-01-30 01:13:33 +0000
committerDamien Miller <djm@mindrot.org>2015-01-30 12:18:59 +1100
commit4509b5d4a4fa645a022635bfa7e86d09b285001f (patch)
treecb94ac37e4d5c59a3a5c2cde3b6c76363e7035d3 /ssherr.c
parent669aee994348468af8b4b2ebd29b602cf2860b22 (diff)
upstream commit
avoid more fatal/exit in the packet.c paths that ssh-keyscan uses; feedback and "looks good" markus@
Diffstat (limited to 'ssherr.c')
-rw-r--r--ssherr.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/ssherr.c b/ssherr.c
index 0b79fbb00..5c29c467c 100644
--- a/ssherr.c
+++ b/ssherr.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssherr.c,v 1.2 2015/01/28 21:15:47 djm Exp $ */ 1/* $OpenBSD: ssherr.c,v 1.3 2015/01/30 01:13:33 djm Exp $ */
2/* 2/*
3 * Copyright (c) 2011 Damien Miller 3 * Copyright (c) 2011 Damien Miller
4 * 4 *
@@ -129,6 +129,10 @@ ssh_err(int n)
129 return "Connection closed"; 129 return "Connection closed";
130 case SSH_ERR_CONN_TIMEOUT: 130 case SSH_ERR_CONN_TIMEOUT:
131 return "Connection timed out"; 131 return "Connection timed out";
132 case SSH_ERR_CONN_CORRUPT:
133 return "Connection corrupted";
134 case SSH_ERR_PROTOCOL_ERROR:
135 return "Protocol error";
132 default: 136 default:
133 return "unknown error"; 137 return "unknown error";
134 } 138 }