diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2011-06-16 20:13:55 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2011-06-16 20:15:36 +0200 |
commit | 86a1c9f6a600eeb2e53b43ee13069f7a48e60139 (patch) | |
tree | 9874a4fd0e4858e755866bc573233513b6e140c5 /lib/gnutls_pubkey.c | |
parent | 6098943e5bb4abb1e61682575d998887287c9fd1 (diff) | |
download | gnutls-86a1c9f6a600eeb2e53b43ee13069f7a48e60139.tar.gz |
Moved null check before initialization.
Diffstat (limited to 'lib/gnutls_pubkey.c')
-rw-r--r-- | lib/gnutls_pubkey.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gnutls_pubkey.c b/lib/gnutls_pubkey.c index 2a09808d72..d6beab34e6 100644 --- a/lib/gnutls_pubkey.c +++ b/lib/gnutls_pubkey.c @@ -1045,14 +1045,14 @@ gnutls_pubkey_import_dsa_raw (gnutls_pubkey_t key, { size_t siz = 0; - gnutls_pk_params_init(&key->params); - if (key == NULL) { gnutls_assert (); return GNUTLS_E_INVALID_REQUEST; } + gnutls_pk_params_init(&key->params); + siz = p->size; if (_gnutls_mpi_scan_nz (&key->params.params[0], p->data, siz)) { |