aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/pqueue
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2005-12-20 07:03:10 +0000
committerRichard Levitte <levitte@openssl.org>2005-12-20 07:03:10 +0000
commitee8f2937019575ccf4f74caffec90b26e62b4155 (patch)
tree169a350f21b53007fd27c3358a896267de4aa77a /crypto/pqueue
parent3b4a0225e248775bf7eb7919be87df40209dece3 (diff)
downloadopenssl-ee8f2937019575ccf4f74caffec90b26e62b4155.tar.gz
Whoops, we were copying instead of comparing at the end of trying to
find a queue element. Notified by nagendra modadugu <nagendra@cs.stanford.edu>
Diffstat (limited to 'crypto/pqueue')
-rw-r--r--crypto/pqueue/pqueue.c2
1 files changed, 1 insertions, 1 deletions
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)