comparison svr-kex.c @ 1580:7f2be495dff6 coverity

merge coverity
author Matt Johnston <matt@ucc.asn.au>
date Sun, 04 Mar 2018 15:07:09 +0800
parents 2f64cb3d3007
children d32bcb5c557d
comparison
equal deleted inserted replaced
1545:0b991dec7ab9 1580:7f2be495dff6
177 { 177 {
178 svr_ensure_hostkey(); 178 svr_ensure_hostkey();
179 } 179 }
180 #endif 180 #endif
181 181
182 #if DROPBEAR_FUZZ
183 if (fuzz.fuzzing && fuzz.skip_kexmaths) {
184 fuzz_fake_send_kexdh_reply();
185 return;
186 }
187 #endif
188
182 buf_putbyte(ses.writepayload, SSH_MSG_KEXDH_REPLY); 189 buf_putbyte(ses.writepayload, SSH_MSG_KEXDH_REPLY);
183 buf_put_pub_key(ses.writepayload, svr_opts.hostkey, 190 buf_put_pub_key(ses.writepayload, svr_opts.hostkey,
184 ses.newkeys->algo_hostkey); 191 ses.newkeys->algo_hostkey);
185 192
186 switch (ses.newkeys->algo_kex->mode) { 193 switch (ses.newkeys->algo_kex->mode) {