Skip to content

Instantly share code, notes, and snippets.

@ficusk
Created February 23, 2014 21:41
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ficusk/9177728 to your computer and use it in GitHub Desktop.
Save ficusk/9177728 to your computer and use it in GitHub Desktop.
Braces don't prevent copy-paste bugs, kids.
if ((err = SSLHashSHA1.update(&hashCtx, &serverRandom)) != 0) {
goto fail;
}
if ((err = SSLHashSHA1.update(&hashCtx, &signedParams)) != 0) {
goto fail;
}
goto fail;
if ((err = SSLHashSHA1.final(&hashCtx, &hashOut)) != 0) {
goto fail;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment