summaryrefslogtreecommitdiffstats
path: root/session.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2008-03-07 08:32:42 +0100
committerDamien Miller <djm@mindrot.org>2008-03-07 08:32:42 +0100
commit767087b8ec996d690bbbed19279454e017418643 (patch)
tree7c5f824c8886fa9d9b620b866a55398b1f8c0454 /session.c
parent - mbalmer@cvs.openbsd.org 2008/02/14 13:10:31 (diff)
downloadopenssh-767087b8ec996d690bbbed19279454e017418643.tar.xz
openssh-767087b8ec996d690bbbed19279454e017418643.zip
- markus@cvs.openbsd.org 2008/02/20 15:25:26
[session.c] correct boolean encoding for coredump; der Mouse via dugsong
Diffstat (limited to 'session.c')
-rw-r--r--session.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/session.c b/session.c
index 589a15a6d..7a97ae8d6 100644
--- a/session.c
+++ b/session.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: session.c,v 1.228 2008/02/13 22:38:17 djm Exp $ */
+/* $OpenBSD: session.c,v 1.229 2008/02/20 15:25:26 markus Exp $ */
/*
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
* All rights reserved
@@ -2317,7 +2317,7 @@ session_exit_message(Session *s, int status)
channel_request_start(s->chanid, "exit-signal", 0);
packet_put_cstring(sig2name(WTERMSIG(status)));
#ifdef WCOREDUMP
- packet_put_char(WCOREDUMP(status));
+ packet_put_char(WCOREDUMP(status)? 1 : 0);
#else /* WCOREDUMP */
packet_put_char(0);
#endif /* WCOREDUMP */