From: Nikos Mavrogiannopoulos Date: Wed, 6 Apr 2011 22:54:34 +0000 (+0200) Subject: correctly compare sign algorithm_st. X-Git-Tag: gnutls_2_99_0~38 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0c0cb963ea97c665239239eb9671a149eb7c34e3;p=thirdparty%2Fgnutls.git correctly compare sign algorithm_st. --- diff --git a/lib/gnutls_algorithms.c b/lib/gnutls_algorithms.c index fff8a12a98..8f3b687aa4 100644 --- a/lib/gnutls_algorithms.c +++ b/lib/gnutls_algorithms.c @@ -2146,7 +2146,7 @@ _gnutls_tls_aid_to_sign (const sign_algorithm_st * aid) { gnutls_sign_algorithm_t ret = GNUTLS_SIGN_UNKNOWN; - if (memcmp(aid, &unknown_tls_aid, sizeof(aid))==0) + if (memcmp(aid, &unknown_tls_aid, sizeof(*aid))==0) return ret; GNUTLS_SIGN_LOOP (if (p->aid.hash_algorithm == aid->hash_algorithm