diff options
author | doug <> | 2015-06-17 07:29:33 +0000 |
---|---|---|
committer | doug <> | 2015-06-17 07:29:33 +0000 |
commit | d1fa227f91aca9fc0c95f15986b026ff18a63e92 (patch) | |
tree | 9a4206d11e2e6c2a88eab7c50a3f0b8e2082f19f /src/lib/libssl/d1_pkt.c | |
parent | bb9400db97f6a52d8f03427568ff93b9c562ae96 (diff) | |
download | openbsd-d1fa227f91aca9fc0c95f15986b026ff18a63e92.tar.gz openbsd-d1fa227f91aca9fc0c95f15986b026ff18a63e92.tar.bz2 openbsd-d1fa227f91aca9fc0c95f15986b026ff18a63e92.zip |
KNF whitespace.
ok miod@ jsing@
Diffstat (limited to 'src/lib/libssl/d1_pkt.c')
-rw-r--r-- | src/lib/libssl/d1_pkt.c | 31 |
1 files changed, 16 insertions, 15 deletions
diff --git a/src/lib/libssl/d1_pkt.c b/src/lib/libssl/d1_pkt.c index a3ba33548e..60c1236f53 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.41 2015/06/13 08:38:10 doug Exp $ */ | 1 | /* $OpenBSD: d1_pkt.c,v 1.42 2015/06/17 07:29:33 doug 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. |
@@ -575,20 +575,21 @@ again: | |||
575 | /* get another record */ | 575 | /* get another record */ |
576 | } | 576 | } |
577 | 577 | ||
578 | /* Check whether this is a repeat, or aged record. | 578 | /* |
579 | * Don't check if we're listening and this message is | 579 | * Check whether this is a repeat, or aged record. |
580 | * a ClientHello. They can look as if they're replayed, | 580 | * Don't check if we're listening and this message is |
581 | * since they arrive from different connections and | 581 | * a ClientHello. They can look as if they're replayed, |
582 | * would be dropped unnecessarily. | 582 | * since they arrive from different connections and |
583 | */ | 583 | * would be dropped unnecessarily. |
584 | if (!(s->d1->listen && rr->type == SSL3_RT_HANDSHAKE && | 584 | */ |
585 | p != NULL && *p == SSL3_MT_CLIENT_HELLO) && | 585 | if (!(s->d1->listen && rr->type == SSL3_RT_HANDSHAKE && |
586 | !dtls1_record_replay_check(s, bitmap)) { | 586 | p != NULL && *p == SSL3_MT_CLIENT_HELLO) && |
587 | rr->length = 0; | 587 | !dtls1_record_replay_check(s, bitmap)) { |
588 | s->packet_length=0; /* dump this record */ | 588 | rr->length = 0; |
589 | goto again; | 589 | s->packet_length=0; /* dump this record */ |
590 | /* get another record */ | 590 | goto again; |
591 | } | 591 | /* get another record */ |
592 | } | ||
592 | 593 | ||
593 | /* just read a 0 length packet */ | 594 | /* just read a 0 length packet */ |
594 | if (rr->length == 0) | 595 | if (rr->length == 0) |