diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2002-08-22 10:08:44 +0000 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2002-08-22 10:08:44 +0000 |
commit | ea3af198e082c711fd860e7b09205789ba950e84 (patch) | |
tree | d91af0aeea2a61782af3ffbb79b9067df528a26b /lib | |
parent | 6f370052c27f0db6cc1eeff7a1a3066897d167a2 (diff) | |
download | gnutls_0_5_2.tar.gz |
*** empty log message ***gnutls_0_5_2
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gnutls_auth.c | 2 |
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) { |