Commit ee8f2937 authored by Richard Levitte's avatar Richard Levitte
Browse files

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>
parent 3b4a0225
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)