Fix to append to end of file.

pull/251/head
David Garske 2021-03-25 08:23:22 -07:00
parent 8885d08476
commit 0603cc30df
2 changed files with 2 additions and 2 deletions

View File

@ -54,7 +54,7 @@ int Tls13SecretCallback(WOLFSSL* ssl, int id, const unsigned char* secret,
size_t clientRandomSz;
XFILE fp = stderr;
if (ctx) {
fp = XFOPEN((const char*)ctx, "wb");
fp = XFOPEN((const char*)ctx, "ab");
if (fp == XBADFILE) {
return BAD_FUNC_ARG;
}

View File

@ -55,7 +55,7 @@ int Tls13SecretCallback(WOLFSSL* ssl, int id, const unsigned char* secret,
size_t clientRandomSz;
XFILE fp = stderr;
if (ctx) {
fp = XFOPEN((const char*)ctx, "wb");
fp = XFOPEN((const char*)ctx, "ab");
if (fp == XBADFILE) {
return BAD_FUNC_ARG;
}