summaryrefslogtreecommitdiff
path: root/sshpty.c
diff options
context:
space:
mode:
authorKevin Steves <stevesk@pobox.com>2001-08-14 20:41:34 +0000
committerKevin Steves <stevesk@pobox.com>2001-08-14 20:41:34 +0000
commit25ee4e48f79681ce76122d2b4ddda46efcd37ca0 (patch)
tree94b77241693a4d74c5d1a3a8e431baae1586ee5a /sshpty.c
parentad4aa5655dd67823af9b751d173e7ce166454770 (diff)
downloadopenssh-git-25ee4e48f79681ce76122d2b4ddda46efcd37ca0.tar.gz
- (stevesk) sshpty.c: return 0 on error in cray pty code;
ok wendyp@cray.com
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 31abd696..f88658b8 100644
--- a/sshpty.c
+++ b/sshpty.c
@@ -186,6 +186,7 @@ pty_allocate(int *ptyfd, int *ttyfd, char *namebuf, int namebuflen)
if (*ttyfd < 0) {
error("%.100s: %.100s", namebuf, strerror(errno));
close(*ptyfd);
+ return 0;
}
return 1;
}