Skip to content

Commit

Permalink
Bug 1538479 - clang-format, a=bustage
Browse files Browse the repository at this point in the history
This is a totally weird choice of formatting.

--HG--
extra : amend_source : 6c0729ef5cecac7c9413928759ff7997f4a2ba45
  • Loading branch information
martinthomson committed Mar 24, 2019
1 parent 4a55603 commit 7825bec
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions lib/ssl/ssl3con.c
Expand Up @@ -11985,16 +11985,15 @@ ssl3_HandleHandshake(sslSocket *ss, sslBuffer *origBuf)
origBuf->len = 0; /* So ssl3_GatherAppDataRecord will keep looping. */
return SECSuccess;

loser:
{
/* Make sure to remove any data that was consumed. */
unsigned int consumed = origBuf->len - buf.len;
PORT_Assert(consumed == buf.buf - origBuf->buf);
if (consumed > 0) {
memmove(origBuf->buf, origBuf->buf + consumed, buf.len);
origBuf->len = buf.len;
}
loser : {
/* Make sure to remove any data that was consumed. */
unsigned int consumed = origBuf->len - buf.len;
PORT_Assert(consumed == buf.buf - origBuf->buf);
if (consumed > 0) {
memmove(origBuf->buf, origBuf->buf + consumed, buf.len);
origBuf->len = buf.len;
}
}
return SECFailure;
}

Expand Down

0 comments on commit 7825bec

Please sign in to comment.