diff options
Diffstat (limited to 'src/lib/libcrypto/dh/dh_lib.c')
| -rw-r--r-- | src/lib/libcrypto/dh/dh_lib.c | 20 | 
1 files changed, 0 insertions, 20 deletions
diff --git a/src/lib/libcrypto/dh/dh_lib.c b/src/lib/libcrypto/dh/dh_lib.c index 4e3d25b7e5..e09c5fdd21 100644 --- a/src/lib/libcrypto/dh/dh_lib.c +++ b/src/lib/libcrypto/dh/dh_lib.c  | |||
| @@ -178,17 +178,7 @@ void DH_free(DH *r) | |||
| 178 | int i; | 178 | int i; | 
| 179 | if(r == NULL) return; | 179 | if(r == NULL) return; | 
| 180 | i = CRYPTO_add(&r->references, -1, CRYPTO_LOCK_DH); | 180 | i = CRYPTO_add(&r->references, -1, CRYPTO_LOCK_DH); | 
| 181 | #ifdef REF_PRINT | ||
| 182 | REF_PRINT("DH",r); | ||
| 183 | #endif | ||
| 184 | if (i > 0) return; | 181 | if (i > 0) return; | 
| 185 | #ifdef REF_CHECK | ||
| 186 | if (i < 0) | ||
| 187 | { | ||
| 188 | fprintf(stderr,"DH_free, bad reference count\n"); | ||
| 189 | abort(); | ||
| 190 | } | ||
| 191 | #endif | ||
| 192 | 182 | ||
| 193 | if (r->meth->finish) | 183 | if (r->meth->finish) | 
| 194 | r->meth->finish(r); | 184 | r->meth->finish(r); | 
| @@ -213,16 +203,6 @@ void DH_free(DH *r) | |||
| 213 | int DH_up_ref(DH *r) | 203 | int DH_up_ref(DH *r) | 
| 214 | { | 204 | { | 
| 215 | int i = CRYPTO_add(&r->references, 1, CRYPTO_LOCK_DH); | 205 | int i = CRYPTO_add(&r->references, 1, CRYPTO_LOCK_DH); | 
| 216 | #ifdef REF_PRINT | ||
| 217 | REF_PRINT("DH",r); | ||
| 218 | #endif | ||
| 219 | #ifdef REF_CHECK | ||
| 220 | if (i < 2) | ||
| 221 | { | ||
| 222 | fprintf(stderr, "DH_up, bad reference count\n"); | ||
| 223 | abort(); | ||
| 224 | } | ||
| 225 | #endif | ||
| 226 | return ((i > 1) ? 1 : 0); | 206 | return ((i > 1) ? 1 : 0); | 
| 227 | } | 207 | } | 
| 228 | 208 | ||
