diff options
author | djm <> | 2011-11-03 02:32:21 +0000 |
---|---|---|
committer | djm <> | 2011-11-03 02:32:21 +0000 |
commit | 074782d395f8a140cd5120b87574dcd928bacd24 (patch) | |
tree | 79374ba6e81c08ba6e78220557d6f6e9ca03f7b7 /src/lib/libcrypto/pqueue/pqueue.c | |
parent | f6ca1ae73bb9eabfb510df2cffc2599db98d35a9 (diff) | |
download | openbsd-074782d395f8a140cd5120b87574dcd928bacd24.tar.gz openbsd-074782d395f8a140cd5120b87574dcd928bacd24.tar.bz2 openbsd-074782d395f8a140cd5120b87574dcd928bacd24.zip |
import OpenSSL 1.0.0e
Diffstat (limited to 'src/lib/libcrypto/pqueue/pqueue.c')
-rw-r--r-- | src/lib/libcrypto/pqueue/pqueue.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/lib/libcrypto/pqueue/pqueue.c b/src/lib/libcrypto/pqueue/pqueue.c index 99a6fb874d..eab13a1250 100644 --- a/src/lib/libcrypto/pqueue/pqueue.c +++ b/src/lib/libcrypto/pqueue/pqueue.c | |||
@@ -167,14 +167,13 @@ pqueue_pop(pqueue_s *pq) | |||
167 | pitem * | 167 | pitem * |
168 | pqueue_find(pqueue_s *pq, unsigned char *prio64be) | 168 | pqueue_find(pqueue_s *pq, unsigned char *prio64be) |
169 | { | 169 | { |
170 | pitem *next, *prev = NULL; | 170 | pitem *next; |
171 | pitem *found = NULL; | 171 | pitem *found = NULL; |
172 | 172 | ||
173 | if ( pq->items == NULL) | 173 | if ( pq->items == NULL) |
174 | return NULL; | 174 | return NULL; |
175 | 175 | ||
176 | for ( next = pq->items; next->next != NULL; | 176 | for ( next = pq->items; next->next != NULL; next = next->next) |
177 | prev = next, next = next->next) | ||
178 | { | 177 | { |
179 | if ( memcmp(next->priority, prio64be,8) == 0) | 178 | if ( memcmp(next->priority, prio64be,8) == 0) |
180 | { | 179 | { |