Skip to content

Commit

Permalink
keep dh_key.x instead of free'ing it
Browse files Browse the repository at this point in the history
the approach before probably saves some bytes on the heap, but it's
inconsistent in regards to what we normally do
  • Loading branch information
karel-m authored and sjaeckel committed Sep 25, 2017
1 parent f7c0b25 commit 83e7f4a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/pk/dh/dh_import.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,6 @@ int dh_import(const unsigned char *in, unsigned long inlen, dh_key *key)
LTC_ASN1_EOL, 0UL, NULL)) != CRYPT_OK) {
goto error;
}
mp_clear(key->x);
key->x = NULL;
}
}
else {
Expand Down

0 comments on commit 83e7f4a

Please sign in to comment.