Module Name:    src
Committed By:   spz
Date:           Sun Jul  5 11:35:54 UTC 2009

Modified Files:
        src/crypto/dist/openssl/ssl: d1_both.c

Log Message:
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.4 -r1.5 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.4 src/crypto/dist/openssl/ssl/d1_both.c:1.5
--- src/crypto/dist/openssl/ssl/d1_both.c:1.4	Sat Jul  4 19:52:10 2009
+++ src/crypto/dist/openssl/ssl/d1_both.c	Sun Jul  5 11:35:53 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;
 

Reply via email to