Skip to content

Commit

Permalink
Wipe out the pointer to already destroyed data so a later error does …
Browse files Browse the repository at this point in the history
…not cause a crash.

(cherry picked from commit a75dd21)
  • Loading branch information
Andriy Pylypenko authored and rvlad-patrascu committed Sep 1, 2020
1 parent 72592f6 commit eccd189
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/stir_shaken/stir_shaken.c
Expand Up @@ -747,6 +747,7 @@ static int add_identity_hf(struct sip_msg *msg, EVP_PKEY *pkey,
}

EVP_MD_CTX_destroy(mdctx);
mdctx = NULL;

/* convert from DER format to the internal structure in order to extract
* the R and S values */
Expand Down

0 comments on commit eccd189

Please sign in to comment.