comparison cli-auth.c @ 1256:506f7681d0f8 coverity

merge up to date
author Matt Johnston <matt@ucc.asn.au>
date Tue, 15 Mar 2016 22:45:43 +0800
parents c6346c63281b
children 750ec4ec4cbe
comparison
equal deleted inserted replaced
1219:84cf9062718d 1256:506f7681d0f8
330 char* getpass_or_cancel(char* prompt) 330 char* getpass_or_cancel(char* prompt)
331 { 331 {
332 char* password = NULL; 332 char* password = NULL;
333 333
334 #ifdef DROPBEAR_PASSWORD_ENV 334 #ifdef DROPBEAR_PASSWORD_ENV
335 /* Password provided in an environment var */ 335 /* Password provided in an environment var */
336 password = getenv(DROPBEAR_PASSWORD_ENV); 336 password = getenv(DROPBEAR_PASSWORD_ENV);
337 if (password) 337 if (password)
338 { 338 {
339 return password; 339 return password;
340 } 340 }
341 #endif 341 #endif
342 342
343 password = getpass(prompt); 343 password = getpass(prompt);
344 344
345 /* 0x03 is a ctrl-c character in the buffer. */ 345 /* 0x03 is a ctrl-c character in the buffer. */