summaryrefslogtreecommitdiff
path: root/sshpty.c
diff options
context:
space:
mode:
Diffstat (limited to 'sshpty.c')
-rw-r--r--sshpty.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sshpty.c b/sshpty.c
index 31abd696c..f88658b80 100644
--- a/sshpty.c
+++ b/sshpty.c
@@ -186,6 +186,7 @@ pty_allocate(int *ptyfd, int *ttyfd, char *namebuf, int namebuflen)
186 if (*ttyfd < 0) { 186 if (*ttyfd < 0) {
187 error("%.100s: %.100s", namebuf, strerror(errno)); 187 error("%.100s: %.100s", namebuf, strerror(errno));
188 close(*ptyfd); 188 close(*ptyfd);
189 return 0;
189 } 190 }
190 return 1; 191 return 1;
191 } 192 }