diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2013-05-31 16:10:57 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2013-05-31 20:59:00 +0200 |
commit | 046798deab1e4c1fd82ee6b22453dda26ffba830 (patch) | |
tree | 1ef1e4c0df00dde05232ac2aa34b72aaaf5f0b57 | |
parent | df049b3921a3b295facb251fe96bcf8aff69380c (diff) | |
download | gnutls-046798deab1e4c1fd82ee6b22453dda26ffba830.tar.gz |
avoid calling clear on null values
-rw-r--r-- | lib/gnutls_pk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gnutls_pk.c b/lib/gnutls_pk.c index 16e96f90b7..8bd8444378 100644 --- a/lib/gnutls_pk.c +++ b/lib/gnutls_pk.c @@ -220,7 +220,7 @@ gnutls_pk_params_clear (gnutls_pk_params_st * p) unsigned int i; for (i = 0; i < p->params_nr; i++) { - _gnutls_mpi_clear (p->params[i]); + if (p->params[i] != NULL) _gnutls_mpi_clear (p->params[i]); } } |