From 0.9.8-stable:
authorRichard Levitte <levitte@openssl.org>
Sat, 4 Jun 2005 04:18:26 +0000 (04:18 +0000)
committerRichard Levitte <levitte@openssl.org>
Sat, 4 Jun 2005 04:18:26 +0000 (04:18 +0000)
handshake_write_seq is an unsigned short, so treat it like one

ssl/d1_srvr.c

index c4118bb26fc172e9005d1f60ec4b1040455aa411..6d07dd47928fa1bb54e2ab3982a2477b41311a4c 100644 (file)
@@ -1075,7 +1075,7 @@ int dtls1_send_certificate_request(SSL *s)
                d=(unsigned char *)buf->data;
                *(d++)=SSL3_MT_CERTIFICATE_REQUEST;
                l2n3(n,d);
-               l2n(s->d1->handshake_write_seq,d);
+               s2n(s->d1->handshake_write_seq,d);
                s->d1->handshake_write_seq++;
 
                /* we should now have things packed up, so lets send