Mercurial > dropbear
diff svr-chansession.c @ 302:973fccb59ea4 ucc-axis-hack
propagate from branch 'au.asn.ucc.matt.dropbear' (head 11034278bd1917bebcbdc69cf53b1891ce9db121)
to branch 'au.asn.ucc.matt.dropbear.ucc-axis-hack' (head 10a1f614fec73d0820c3f61160d9db409b9beb46)
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sat, 25 Mar 2006 12:59:58 +0000 |
parents | 1f5ec029dfe8 |
children | 5d5bbca82aba 3eea61bd9993 dba106bf6b34 8eaa6e3ca6eb |
line wrap: on
line diff
--- a/svr-chansession.c Sat Mar 25 12:57:09 2006 +0000 +++ b/svr-chansession.c Sat Mar 25 12:59:58 2006 +0000 @@ -845,15 +845,13 @@ svr_opts.hostkey = NULL; /* overwrite the prng state */ - seedrandom(); + reseedrandom(); #endif /* close file descriptors except stdin/stdout/stderr * Need to be sure FDs are closed here to avoid reading files as root */ for (i = 3; i <= (unsigned int)ses.maxfd; i++) { - if (m_close(i) == DROPBEAR_FAILURE) { - dropbear_exit("Error closing file desc"); - } + m_close(i); } /* clear environment */