passphrase_read: Set buf_iter to NULL so nothing passphrase_read puts on the stack will point to the password for long

This commit is contained in:
Shea Levy 2011-09-24 02:25:55 -04:00
parent ade70ee606
commit 4351ffcbfe

View File

@ -53,6 +53,7 @@ char* freerdp_passphrase_read(const char* prompt, char* buf, size_t bufsiz)
}
}
*buf_iter = '\0';
buf_iter = NULL;
close(term_id);