summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2002-08-22 10:08:44 +0000
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2002-08-22 10:08:44 +0000
commitea3af198e082c711fd860e7b09205789ba950e84 (patch)
treed91af0aeea2a61782af3ffbb79b9067df528a26b /lib
parent6f370052c27f0db6cc1eeff7a1a3066897d167a2 (diff)
downloadgnutls_0_5_2.tar.gz
*** empty log message ***gnutls_0_5_2
Diffstat (limited to 'lib')
-rw-r--r--lib/gnutls_auth.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/gnutls_auth.c b/lib/gnutls_auth.c
index 6aed393e89..0898302eb4 100644
--- a/lib/gnutls_auth.c
+++ b/lib/gnutls_auth.c
@@ -155,6 +155,8 @@ const void *_gnutls_get_kx_cred( GNUTLS_KEY key, KXAlgorithm algo, int *err) {
const void *_gnutls_get_cred( GNUTLS_KEY key, CredType type, int *err) {
AUTH_CRED * ccred;
+ if (key == NULL) return NULL;
+
ccred = key->cred;
while(ccred!=NULL) {
if (ccred->algorithm==type) {