summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2002-08-22 10:09:06 +0000
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2002-08-22 10:09:06 +0000
commitceb0ce2bf63c99fea35e8110936ee6e915f1e4cd (patch)
tree6f65ab7d2403698a1a864ee182203f18b27bc8d4
parent9438ffb0db2633347b839b6220522978e6963cdd (diff)
downloadgnutls-ceb0ce2bf63c99fea35e8110936ee6e915f1e4cd.tar.gz
*** empty log message ***
-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..00f290c226 100644
--- a/lib/gnutls_auth.c
+++ b/lib/gnutls_auth.c
@@ -154,6 +154,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) {