Skip to content

Commit 8d51343

Browse files
committed
Merge branch 'rs/receive-pack-use-labs' into maint
* rs/receive-pack-use-labs: use labs() for variables of type long instead of abs()
2 parents e8c2351 + 31a8aa1 commit 8d51343

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builtin/receive-pack.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ static const char *check_nonce(const char *buf, size_t len)
431431
nonce_stamp_slop = (long)ostamp - (long)stamp;
432432

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

0 commit comments

Comments
 (0)