소스 검색

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
Karel Miko 8 년 전
부모
커밋
83e7f4a1c7
1개의 변경된 파일0개의 추가작업 그리고 2개의 파일을 삭제
  1. 0 2
      src/pk/dh/dh_import.c

+ 0 - 2
src/pk/dh/dh_import.c

@@ -69,8 +69,6 @@ int dh_import(const unsigned char *in, unsigned long inlen, dh_key *key)
                                               LTC_ASN1_EOL,           0UL, NULL)) != CRYPT_OK) {
                                               LTC_ASN1_EOL,           0UL, NULL)) != CRYPT_OK) {
             goto error;
             goto error;
          }
          }
-         mp_clear(key->x);
-         key->x = NULL;
       }
       }
    }
    }
    else {
    else {