diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2017-04-05 13:15:38 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2017-04-05 14:54:02 +0200 |
commit | 872d5dc701156dbae24f5ed3274a1b5a44e73e72 (patch) | |
tree | f3bffc3149a785dd2e76a5b7c8c50b50f38afd40 /lib | |
parent | dd7358c48a2b972ccbce4db60afcab5d69712bc7 (diff) | |
download | gnutls-872d5dc701156dbae24f5ed3274a1b5a44e73e72.tar.gz |
gnutls_x509_crq_set_challenge_password: don't accept null password
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/x509/crq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/x509/crq.c b/lib/x509/crq.c index 936e122519..0ce2e693d0 100644 --- a/lib/x509/crq.c +++ b/lib/x509/crq.c @@ -1074,7 +1074,7 @@ gnutls_x509_crq_set_challenge_password(gnutls_x509_crq_t crq, int result; char *password = NULL; - if (crq == NULL) { + if (crq == NULL || pass == NULL) { gnutls_assert(); return GNUTLS_E_INVALID_REQUEST; } |