From: Nikos Mavrogiannopoulos Date: Thu, 22 Aug 2002 10:09:06 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: gnutls_0_5_4~23 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ceb0ce2bf63c99fea35e8110936ee6e915f1e4cd;p=thirdparty%2Fgnutls.git *** empty log message *** --- 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) {