Skip to content

Commit 83e7f4a

Browse files
karel-msjaeckel
authored andcommitted
keep dh_key.x instead of free'ing it
the approach before probably saves some bytes on the heap, but it's inconsistent in regards to what we normally do
1 parent f7c0b25 commit 83e7f4a

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

src/pk/dh/dh_import.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,6 @@ int dh_import(const unsigned char *in, unsigned long inlen, dh_key *key)
6969
LTC_ASN1_EOL, 0UL, NULL)) != CRYPT_OK) {
7070
goto error;
7171
}
72-
mp_clear(key->x);
73-
key->x = NULL;
7472
}
7573
}
7674
else {

0 commit comments

Comments
 (0)