Module Name: src
Committed By: snj
Date: Sun Jul 5 14:20:51 UTC 2009
Modified Files:
src/crypto/dist/openssl/ssl [netbsd-5-0]: d1_both.c
Log Message:
Pull up following revision(s) (requested by spz in ticket #851):
crypto/dist/openssl/ssl/d1_both.c: revision 1.5
fix break for non-64bit systems due to non-applying macro resp variable
having crept in with the last patch.
ok martin, compile tested mbalmer and martin
To generate a diff of this commit:
cvs rdiff -u -r1.3.8.1 -r1.3.8.2 src/crypto/dist/openssl/ssl/d1_both.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/crypto/dist/openssl/ssl/d1_both.c
diff -u src/crypto/dist/openssl/ssl/d1_both.c:1.3.8.1 src/crypto/dist/openssl/ssl/d1_both.c:1.3.8.2
--- src/crypto/dist/openssl/ssl/d1_both.c:1.3.8.1 Sun Jul 5 14:19:35 2009
+++ src/crypto/dist/openssl/ssl/d1_both.c Sun Jul 5 14:20:51 2009
@@ -598,11 +598,11 @@
if (i<=0 || (unsigned long)i!=frag_len)
goto err;
- pq_64bit_init(&seq64);
- pq_64bit_assign_word(&seq64, msg_hdr->seq);
+ memset(seq64be,0,sizeof(seq64be));
+ seq64be[6] = (unsigned char)(msg_hdr->seq>>8);
+ seq64be[7] = (unsigned char)(msg_hdr->seq);
item = pitem_new(seq64be, frag);
- pq_64bit_free(&seq64);
if ( item == NULL)
goto err;