Don't close pty_slave and real_ttyfd in connect_tty if an error
authorPaul Mackerras <paulus@samba.org>
Fri, 31 Dec 2004 11:49:22 +0000 (11:49 +0000)
committerPaul Mackerras <paulus@samba.org>
Fri, 31 Dec 2004 11:49:22 +0000 (11:49 +0000)
commit3c9d53d98102887698af1c1b3655274207e7c941
tree36f2e41a91fb97726f76e81e321538a308b92edc
parent781f9542177b990bd67fa6c8399c131652871988
Don't close pty_slave and real_ttyfd in connect_tty if an error
occurs; link_required calls cleanup_tty if connect_tty returns
an error, and that does the closing.  Doing the closes in connect_tty
meant that the disconnector couldn't run and the tty mode couldn't
be restored.
pppd/tty.c