summaryrefslogtreecommitdiff
path: root/src/lib/libssl/d1_both.c
diff options
context:
space:
mode:
authorjsing <>2020-08-11 19:13:35 +0000
committerjsing <>2020-08-11 19:13:35 +0000
commit880ea195eca4d4670a18be746a2ed8af2fbae1bf (patch)
treef621cd525b3033a7f4d2330d4efec3466735da76 /src/lib/libssl/d1_both.c
parente60447c161c889413e5e51194ef31bec0e405a19 (diff)
downloadopenbsd-880ea195eca4d4670a18be746a2ed8af2fbae1bf.tar.gz
openbsd-880ea195eca4d4670a18be746a2ed8af2fbae1bf.tar.bz2
openbsd-880ea195eca4d4670a18be746a2ed8af2fbae1bf.zip
Use 0 instead of 0x00 for memset() calls.
ok inoguchi@ tb@
Diffstat (limited to 'src/lib/libssl/d1_both.c')
-rw-r--r--src/lib/libssl/d1_both.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libssl/d1_both.c b/src/lib/libssl/d1_both.c
index 8f3cc610b8..4a2e41b21b 100644
--- a/src/lib/libssl/d1_both.c
+++ b/src/lib/libssl/d1_both.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: d1_both.c,v 1.57 2019/02/10 16:42:35 phessler Exp $ */ 1/* $OpenBSD: d1_both.c,v 1.58 2020/08/11 19:13:35 jsing Exp $ */
2/* 2/*
3 * DTLS implementation written by Nagendra Modadugu 3 * DTLS implementation written by Nagendra Modadugu
4 * (nagendra@cs.stanford.edu) for the OpenSSL project 2005. 4 * (nagendra@cs.stanford.edu) for the OpenSSL project 2005.
@@ -417,7 +417,7 @@ dtls1_get_message(SSL *s, int st1, int stn, int mt, long max, int *ok)
417 } 417 }
418 418
419 msg_hdr = &D1I(s)->r_msg_hdr; 419 msg_hdr = &D1I(s)->r_msg_hdr;
420 memset(msg_hdr, 0x00, sizeof(struct hm_header_st)); 420 memset(msg_hdr, 0, sizeof(struct hm_header_st));
421 421
422again: 422again:
423 i = dtls1_get_message_fragment(s, st1, stn, max, ok); 423 i = dtls1_get_message_fragment(s, st1, stn, max, ok);
@@ -441,7 +441,7 @@ again:
441 s->internal->msg_callback(0, s->version, SSL3_RT_HANDSHAKE, p, msg_len, 441 s->internal->msg_callback(0, s->version, SSL3_RT_HANDSHAKE, p, msg_len,
442 s, s->internal->msg_callback_arg); 442 s, s->internal->msg_callback_arg);
443 443
444 memset(msg_hdr, 0x00, sizeof(struct hm_header_st)); 444 memset(msg_hdr, 0, sizeof(struct hm_header_st));
445 445
446 /* Don't change sequence numbers while listening */ 446 /* Don't change sequence numbers while listening */
447 if (!D1I(s)->listen) 447 if (!D1I(s)->listen)
@@ -1249,7 +1249,7 @@ dtls1_get_message_header(unsigned char *data, struct hm_header_st *msg_hdr)
1249void 1249void
1250dtls1_get_ccs_header(unsigned char *data, struct ccs_header_st *ccs_hdr) 1250dtls1_get_ccs_header(unsigned char *data, struct ccs_header_st *ccs_hdr)
1251{ 1251{
1252 memset(ccs_hdr, 0x00, sizeof(struct ccs_header_st)); 1252 memset(ccs_hdr, 0, sizeof(struct ccs_header_st));
1253 1253
1254 ccs_hdr->type = *(data++); 1254 ccs_hdr->type = *(data++);
1255} 1255}