summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2017-04-05 13:15:38 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2017-04-06 12:58:33 +0200
commit1dab21dc9576166b21a372f1826867e4a15d4cf7 (patch)
tree47bb7de3395ca425da04449eb0165f446fd716de /lib
parentdc48e882c309bed9589ba14c697802c6fa92c7e0 (diff)
downloadgnutls-1dab21dc9576166b21a372f1826867e4a15d4cf7.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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/x509/crq.c b/lib/x509/crq.c
index af0ecf8264..50c574cb57 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;
}