summaryrefslogtreecommitdiff
path: root/lib/gnutls_pk.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2013-05-31 16:10:57 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2013-05-31 20:54:06 +0200
commitd8709640092d918a7224cb87309bc5209b4e8b0e (patch)
tree39075681267702ccac56a9c8444d43047cd7481a /lib/gnutls_pk.c
parent2fd2c9199026883c396371e2ebdc816d0fe55160 (diff)
downloadgnutls-d8709640092d918a7224cb87309bc5209b4e8b0e.tar.gz
avoid calling clear on null values
Diffstat (limited to 'lib/gnutls_pk.c')
-rw-r--r--lib/gnutls_pk.c2
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]);
}
}