summaryrefslogtreecommitdiff
path: root/monitor_wrap.c
diff options
context:
space:
mode:
Diffstat (limited to 'monitor_wrap.c')
-rw-r--r--monitor_wrap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/monitor_wrap.c b/monitor_wrap.c
index 6b3a6251c..933ce9a3d 100644
--- a/monitor_wrap.c
+++ b/monitor_wrap.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: monitor_wrap.c,v 1.112 2019/01/21 09:54:11 djm Exp $ */ 1/* $OpenBSD: monitor_wrap.c,v 1.113 2019/06/28 13:35:04 deraadt Exp $ */
2/* 2/*
3 * Copyright 2002 Niels Provos <provos@citi.umich.edu> 3 * Copyright 2002 Niels Provos <provos@citi.umich.edu>
4 * Copyright 2002 Markus Friedl <markus@openbsd.org> 4 * Copyright 2002 Markus Friedl <markus@openbsd.org>
@@ -633,7 +633,7 @@ mm_session_pty_cleanup2(Session *s)
633 sshbuf_free(m); 633 sshbuf_free(m);
634 634
635 /* closed dup'ed master */ 635 /* closed dup'ed master */
636 if (s->ptymaster != -1 && close(s->ptymaster) < 0) 636 if (s->ptymaster != -1 && close(s->ptymaster) == -1)
637 error("close(s->ptymaster/%d): %s", 637 error("close(s->ptymaster/%d): %s",
638 s->ptymaster, strerror(errno)); 638 s->ptymaster, strerror(errno));
639 639