]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
*** empty log message ***
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Thu, 22 Aug 2002 10:09:06 +0000 (10:09 +0000)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Thu, 22 Aug 2002 10:09:06 +0000 (10:09 +0000)
lib/gnutls_auth.c

index 6aed393e896fdf0c3f42668f38ffe31d8f6895e7..00f290c226f30a546747c9560249c370b8b308fd 100644 (file)
@@ -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) {