Whoops, we were copying instead of comparing at the end of trying to
authorRichard Levitte <levitte@openssl.org>
Tue, 20 Dec 2005 07:03:10 +0000 (07:03 +0000)
committerRichard Levitte <levitte@openssl.org>
Tue, 20 Dec 2005 07:03:10 +0000 (07:03 +0000)
find a queue element.

Notified by nagendra modadugu <nagendra@cs.stanford.edu>

crypto/pqueue/pqueue.c

index b881ed2..c20bc6f 100644 (file)
@@ -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)