1
0
mirror of https://github.com/tmate-io/tmate-ssh-server.git synced 2020-11-18 19:53:51 -08:00

Don't close random file descriptor on error, from J Raynor.

This commit is contained in:
Nicholas Marriott 2014-09-25 10:53:29 +01:00
parent 16670410ca
commit 5e7f1b9f0a
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@
pid_t pid_t
forkpty(int *master, char *name, struct termios *tio, struct winsize *ws) forkpty(int *master, char *name, struct termios *tio, struct winsize *ws)
{ {
int slave; int slave = -1;
char *path; char *path;
pid_t pid; pid_t pid;

View File

@ -30,7 +30,7 @@
pid_t pid_t
forkpty(int *master, char *name, struct termios *tio, struct winsize *ws) forkpty(int *master, char *name, struct termios *tio, struct winsize *ws)
{ {
int slave; int slave = -1;
char *path; char *path;
pid_t pid; pid_t pid;