comparison cli-kex.c @ 1219:84cf9062718d coverity

merge
author Matt Johnston <matt@ucc.asn.au>
date Tue, 15 Dec 2015 22:24:34 +0800
parents 7fd1211a1f63
children 8291fc87273e
comparison
equal deleted inserted replaced
1196:a29559086628 1219:84cf9062718d
188 FILE *tty = NULL; 188 FILE *tty = NULL;
189 char response = 'z'; 189 char response = 'z';
190 190
191 fp = sign_key_fingerprint(keyblob, keybloblen); 191 fp = sign_key_fingerprint(keyblob, keybloblen);
192 if (cli_opts.always_accept_key) { 192 if (cli_opts.always_accept_key) {
193 fprintf(stderr, "\nHost '%s' key accepted unconditionally.\n(%s fingerprint %s)\n", 193 dropbear_log(LOG_INFO, "\nHost '%s' key accepted unconditionally.\n(%s fingerprint %s)\n",
194 cli_opts.remotehost, 194 cli_opts.remotehost,
195 algoname, 195 algoname,
196 fp); 196 fp);
197 m_free(fp); 197 m_free(fp);
198 return; 198 return;
288 char * fingerprint = NULL; 288 char * fingerprint = NULL;
289 buffer * line = NULL; 289 buffer * line = NULL;
290 int ret; 290 int ret;
291 291
292 if (cli_opts.no_hostkey_check) { 292 if (cli_opts.no_hostkey_check) {
293 fprintf(stderr, "Caution, skipping hostkey check for %s\n", cli_opts.remotehost); 293 dropbear_log(LOG_INFO, "Caution, skipping hostkey check for %s\n", cli_opts.remotehost);
294 return; 294 return;
295 } 295 }
296 296
297 algoname = signkey_name_from_type(ses.newkeys->algo_hostkey, &algolen); 297 algoname = signkey_name_from_type(ses.newkeys->algo_hostkey, &algolen);
298 298