Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Bug 1515236 - Initialize debug environment variables before use r=mt
--HG--
extra : absorb_source : aeee541b597aa92490099bacc93894ead41985d8
extra : transplant_source : %0B%B2x%1D%CC%DE%E6%A7%28%17%D8%EA%8F%E56%60%21%D9%26%94
  • Loading branch information
jcjones committed Jan 22, 2019
1 parent 81a6712 commit 62e5324
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/ssl/sslsock.c
Expand Up @@ -3644,6 +3644,7 @@ ssl_SetDefaultsFromEnvironment(void)
char *ev;
firsttime = 0;
#ifdef DEBUG
ssl_trace_iob = NULL;
ev = PR_GetEnvSecure("SSLDEBUGFILE");
if (ev && ev[0]) {
ssl_trace_iob = fopen(ev, "w");
Expand All @@ -3665,6 +3666,7 @@ ssl_SetDefaultsFromEnvironment(void)
}
#endif /* DEBUG */
#ifdef NSS_ALLOW_SSLKEYLOGFILE
ssl_keylog_iob = NULL;
ev = PR_GetEnvSecure("SSLKEYLOGFILE");
if (ev && ev[0]) {
ssl_keylog_iob = fopen(ev, "a");
Expand Down

0 comments on commit 62e5324

Please sign in to comment.