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)