mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-04-21 13:05:04 -05:00
uxpgnt --askpass: explicitly fflush(stdout) on exit.
I'm not really sure why that's necessary: by my understanding of the C standard, it shouldn't be. But my observation is that when compiling with {Address,Leak} Sanitiser enabled, pageant --askpass can somehow manage to exit without having actually written the passphrase to its standard output. (cherry picked from commit c618d6baac454feac8d09c0a307a5e70ae090326)
This commit is contained in:
parent
706eb63c31
commit
11d67b5a91
@ -1093,6 +1093,8 @@ int main(int argc, char **argv)
|
|||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
puts(passphrase);
|
puts(passphrase);
|
||||||
|
fflush(stdout);
|
||||||
|
|
||||||
smemclr(passphrase, strlen(passphrase));
|
smemclr(passphrase, strlen(passphrase));
|
||||||
sfree(passphrase);
|
sfree(passphrase);
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user