From ee8f2937019575ccf4f74caffec90b26e62b4155 Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Tue, 20 Dec 2005 07:03:10 +0000 Subject: [PATCH] Whoops, we were copying instead of comparing at the end of trying to find a queue element. Notified by nagendra modadugu --- crypto/pqueue/pqueue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.34.1