memset, memcpy, sizeof consistency fixes
[openssl.git] / ssl / d1_msg.c
index f71b1cca16f1e0002035688c379f690d3b876c69..13bda469226e8f2a5fb65dd0f153dcc9326e6b67 100644 (file)
@@ -161,7 +161,7 @@ int dtls1_dispatch_alert(SSL *s)
 
     s->s3->alert_dispatch = 0;
 
 
     s->s3->alert_dispatch = 0;
 
-    memset(buf, 0x00, sizeof(buf));
+    memset(buf, 0, sizeof(buf));
     *ptr++ = s->s3->send_alert[0];
     *ptr++ = s->s3->send_alert[1];
 
     *ptr++ = s->s3->send_alert[0];
     *ptr++ = s->s3->send_alert[1];