Mercurial > dropbear
comparison common-session.c @ 1083:8e0280986710
Make sure kexfirstinitialise is called early enough
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Sun, 03 May 2015 00:00:35 +0800 |
parents | acf444bcb115 |
children | bb3a03feb31f aaf576b27a10 |
comparison
equal
deleted
inserted
replaced
1082:3cb73e8d6122 | 1083:8e0280986710 |
---|---|
88 setnonblocking(ses.signal_pipe[1]); | 88 setnonblocking(ses.signal_pipe[1]); |
89 | 89 |
90 ses.maxfd = MAX(ses.maxfd, ses.signal_pipe[0]); | 90 ses.maxfd = MAX(ses.maxfd, ses.signal_pipe[0]); |
91 ses.maxfd = MAX(ses.maxfd, ses.signal_pipe[1]); | 91 ses.maxfd = MAX(ses.maxfd, ses.signal_pipe[1]); |
92 | 92 |
93 kexfirstinitialise(); /* initialise the kex state */ | |
94 | |
95 ses.writepayload = buf_new(TRANS_MAX_PAYLOAD_LEN); | 93 ses.writepayload = buf_new(TRANS_MAX_PAYLOAD_LEN); |
96 ses.transseq = 0; | 94 ses.transseq = 0; |
97 | 95 |
98 ses.readbuf = NULL; | 96 ses.readbuf = NULL; |
99 ses.payload = NULL; | 97 ses.payload = NULL; |