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:54:06 +0200 |
commit | d8709640092d918a7224cb87309bc5209b4e8b0e (patch) | |
tree | 39075681267702ccac56a9c8444d43047cd7481a /lib/gnutls_pk.c | |
parent | 2fd2c9199026883c396371e2ebdc816d0fe55160 (diff) | |
download | gnutls-d8709640092d918a7224cb87309bc5209b4e8b0e.tar.gz |
avoid calling clear on null values
Diffstat (limited to 'lib/gnutls_pk.c')
-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 7a04b76d4d..8675c40cca 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]); } } |