Fix DER output of gen_key app (found by Gergely Budai)

This commit is contained in:
Paul Bakker 2014-06-13 17:37:46 +02:00
parent 3461772559
commit 3c38f29a61
2 changed files with 2 additions and 1 deletions

View file

@ -27,6 +27,7 @@ Bugfix
* Other minor issues (found by Peter Vaskovic)
* Fix symlink command for cross compiling with CMake (found by Andre
Heinecke)
* Fix DER output of gen_key app (found by Gergely Budai)
= PolarSSL 1.3.7 released on 2014-05-02
Features

View file

@ -143,7 +143,7 @@ static int write_private_key( pk_context *key, const char *output_file )
return( ret );
len = ret;
c = output_buf + sizeof(output_buf) - len - 1;
c = output_buf + sizeof(output_buf) - len;
}
if( ( f = fopen( output_file, "w" ) ) == NULL )