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 b881ed2b3aa31fd39cb45a3fe3549bd980820ed9..c20bc6fc965c51ac4af8a1f6efa3c1bec8d2704a 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)