Skip to content

Commit

Permalink
Merge branch 'rs/receive-pack-use-labs' into maint
Browse files Browse the repository at this point in the history
* rs/receive-pack-use-labs:
  use labs() for variables of type long instead of abs()
  • Loading branch information
Junio C Hamano committed Dec 22, 2014
2 parents e8c2351 + 31a8aa1 commit 8d51343
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builtin/receive-pack.c
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,7 @@ static const char *check_nonce(const char *buf, size_t len)
nonce_stamp_slop = (long)ostamp - (long)stamp;

if (nonce_stamp_slop_limit &&
abs(nonce_stamp_slop) <= nonce_stamp_slop_limit) {
labs(nonce_stamp_slop) <= nonce_stamp_slop_limit) {
/*
* Pretend as if the received nonce (which passes the
* HMAC check, so it is not a forged by third-party)
Expand Down

0 comments on commit 8d51343

Please sign in to comment.