comparison svr-kex.c @ 435:337c45621e81

merge of 'a9b0496634cdd25647b65e585cc3240f3fa699ee' and 'c22be8b8f570b48e9662dac32c7b3e7148a42206'
author Matt Johnston <matt@ucc.asn.au>
date Thu, 22 Feb 2007 14:53:49 +0000
parents 454a34b2dfd1
children 3aa74a4d83ae 76097ec1a29a
comparison
equal deleted inserted replaced
434:0aaaf68e97dc 435:337c45621e81
50 if (!ses.kexstate.recvkexinit) { 50 if (!ses.kexstate.recvkexinit) {
51 dropbear_exit("Premature kexdh_init message received"); 51 dropbear_exit("Premature kexdh_init message received");
52 } 52 }
53 53
54 m_mp_init(&dh_e); 54 m_mp_init(&dh_e);
55 buf_getmpint(ses.payload, &dh_e); 55 if (buf_getmpint(ses.payload, &dh_e) != DROPBEAR_SUCCESS) {
56 dropbear_exit("Failed to get kex value");
57 }
56 58
57 send_msg_kexdh_reply(&dh_e); 59 send_msg_kexdh_reply(&dh_e);
58 60
59 mp_clear(&dh_e); 61 mp_clear(&dh_e);
60 62