summaryrefslogtreecommitdiffstats
path: root/ssl/d1_both.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2009-05-18 16:22:43 +0000
committerDr. Stephen Henson <steve@openssl.org>2009-05-18 16:22:43 +0000
commitf86d65110db02864cc1d06e3787eeebdfd3f92e2 (patch)
tree81f17e03f08040b9a93cc55275dfa210f13e7240 /ssl/d1_both.c
parent4730ea8a3852368dd8aac1ae8423a092c2d65fe4 (diff)
0.9.8 version of PR#1931 fix.
Diffstat (limited to 'ssl/d1_both.c')
-rw-r--r--ssl/d1_both.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ssl/d1_both.c b/ssl/d1_both.c
index 63d00062f2..fb74ed2763 100644
--- a/ssl/d1_both.c
+++ b/ssl/d1_both.c
@@ -562,10 +562,10 @@ dtls1_process_out_of_seq_message(SSL *s, struct hm_header_st* msg_hdr, int *ok)
goto err;
/* Try to find item in queue, to prevent duplicate entries */
- memset(seq64be,0,sizeof(seq64be));
- seq64be[6] = (unsigned char) (msg_hdr->seq>>8);
- seq64be[7] = (unsigned char) msg_hdr->seq;
- item = pqueue_find(s->d1->buffered_messages, seq64be);
+ pq_64bit_init(&seq64);
+ pq_64bit_assign_word(&seq64, msg_hdr->seq);
+ item = pqueue_find(s->d1->buffered_messages, seq64);
+ pq_64bit_free(&seq64);
/* Discard the message if sequence number was already there, is
* too far in the future or the fragment is already in the queue */