Mercurial > dropbear
comparison cli-kex.c @ 1257:8291fc87273e
Fix truncated type for getc() at confirmation prompt
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Tue, 15 Mar 2016 23:03:31 +0800 |
parents | 7fd1211a1f63 |
children | 56aba7dedbea |
comparison
equal
deleted
inserted
replaced
1255:55d485943eb0 | 1257:8291fc87273e |
---|---|
184 static void ask_to_confirm(unsigned char* keyblob, unsigned int keybloblen, | 184 static void ask_to_confirm(unsigned char* keyblob, unsigned int keybloblen, |
185 const char* algoname) { | 185 const char* algoname) { |
186 | 186 |
187 char* fp = NULL; | 187 char* fp = NULL; |
188 FILE *tty = NULL; | 188 FILE *tty = NULL; |
189 char response = 'z'; | 189 int 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 dropbear_log(LOG_INFO, "\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, |