diff options
| author | jsing <> | 2020-08-11 19:13:35 +0000 |
|---|---|---|
| committer | jsing <> | 2020-08-11 19:13:35 +0000 |
| commit | 885110ef90d6077c936a51758ce6aaf4aa445b03 (patch) | |
| tree | f621cd525b3033a7f4d2330d4efec3466735da76 /src/lib/libssl/d1_pkt.c | |
| parent | fb152356934459b31bbf9e224880648db97b170b (diff) | |
| download | openbsd-885110ef90d6077c936a51758ce6aaf4aa445b03.tar.gz openbsd-885110ef90d6077c936a51758ce6aaf4aa445b03.tar.bz2 openbsd-885110ef90d6077c936a51758ce6aaf4aa445b03.zip | |
Use 0 instead of 0x00 for memset() calls.
ok inoguchi@ tb@
Diffstat (limited to 'src/lib/libssl/d1_pkt.c')
| -rw-r--r-- | src/lib/libssl/d1_pkt.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libssl/d1_pkt.c b/src/lib/libssl/d1_pkt.c index dd7d9aa76c..9ea694f605 100644 --- a/src/lib/libssl/d1_pkt.c +++ b/src/lib/libssl/d1_pkt.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: d1_pkt.c,v 1.78 2020/08/09 16:02:58 jsing Exp $ */ | 1 | /* $OpenBSD: d1_pkt.c,v 1.79 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. |
| @@ -1370,7 +1370,7 @@ dtls1_dispatch_alert(SSL *s) | |||
| 1370 | 1370 | ||
| 1371 | S3I(s)->alert_dispatch = 0; | 1371 | S3I(s)->alert_dispatch = 0; |
| 1372 | 1372 | ||
| 1373 | memset(buf, 0x00, sizeof(buf)); | 1373 | memset(buf, 0, sizeof(buf)); |
| 1374 | *ptr++ = S3I(s)->send_alert[0]; | 1374 | *ptr++ = S3I(s)->send_alert[0]; |
| 1375 | *ptr++ = S3I(s)->send_alert[1]; | 1375 | *ptr++ = S3I(s)->send_alert[1]; |
| 1376 | 1376 | ||
| @@ -1430,12 +1430,12 @@ dtls1_reset_seq_numbers(SSL *s, int rw) | |||
| 1430 | seq = S3I(s)->read_sequence; | 1430 | seq = S3I(s)->read_sequence; |
| 1431 | D1I(s)->r_epoch++; | 1431 | D1I(s)->r_epoch++; |
| 1432 | memcpy(&(D1I(s)->bitmap), &(D1I(s)->next_bitmap), sizeof(DTLS1_BITMAP)); | 1432 | memcpy(&(D1I(s)->bitmap), &(D1I(s)->next_bitmap), sizeof(DTLS1_BITMAP)); |
| 1433 | memset(&(D1I(s)->next_bitmap), 0x00, sizeof(DTLS1_BITMAP)); | 1433 | memset(&(D1I(s)->next_bitmap), 0, sizeof(DTLS1_BITMAP)); |
| 1434 | } else { | 1434 | } else { |
| 1435 | seq = S3I(s)->write_sequence; | 1435 | seq = S3I(s)->write_sequence; |
| 1436 | memcpy(D1I(s)->last_write_sequence, seq, sizeof(S3I(s)->write_sequence)); | 1436 | memcpy(D1I(s)->last_write_sequence, seq, sizeof(S3I(s)->write_sequence)); |
| 1437 | D1I(s)->w_epoch++; | 1437 | D1I(s)->w_epoch++; |
| 1438 | } | 1438 | } |
| 1439 | 1439 | ||
| 1440 | memset(seq, 0x00, seq_bytes); | 1440 | memset(seq, 0, seq_bytes); |
| 1441 | } | 1441 | } |
