From: Richard Levitte Date: Tue, 20 Dec 2005 07:03:10 +0000 (+0000) Subject: Whoops, we were copying instead of comparing at the end of trying to X-Git-Tag: OpenSSL_0_9_8k^2~1630 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ee8f2937019575ccf4f74caffec90b26e62b4155;p=oweals%2Fopenssl.git Whoops, we were copying instead of comparing at the end of trying to find a queue element. Notified by nagendra modadugu --- diff --git a/crypto/pqueue/pqueue.c b/crypto/pqueue/pqueue.c index b881ed2b3a..c20bc6fc96 100644 --- a/crypto/pqueue/pqueue.c +++ b/crypto/pqueue/pqueue.c @@ -184,7 +184,7 @@ pqueue_find(pqueue_s *pq, unsigned char *prio64be) } /* check the one last node */ - if ( memcpy(next->priority, prio64be,8) ==0) + if ( memcmp(next->priority, prio64be,8) ==0) found = next; if ( ! found)