comparison cli-authinteract.c @ 250:d059b0bb57dd

Forgot to revert echo flag
author Matt Johnston <matt@ucc.asn.au>
date Tue, 20 Sep 2005 17:36:32 +0000
parents efbaf6b03837
children 475a818dd6e7 740e782679be
comparison
equal deleted inserted replaced
249:efbaf6b03837 250:d059b0bb57dd
112 prompt = buf_getstring(ses.payload, NULL); 112 prompt = buf_getstring(ses.payload, NULL);
113 cleantext(prompt); 113 cleantext(prompt);
114 114
115 echo = buf_getbool(ses.payload); 115 echo = buf_getbool(ses.payload);
116 116
117 if (echo) { 117 if (!echo) {
118 unsigned char* p = getpass(prompt); 118 unsigned char* p = getpass(prompt);
119 response = m_strdup(p); 119 response = m_strdup(p);
120 m_burn(p, strlen(p)); 120 m_burn(p, strlen(p));
121 } else { 121 } else {
122 response = get_response(prompt); 122 response = get_response(prompt);