diff options
author | dtucker@openbsd.org <dtucker@openbsd.org> | 2018-05-11 03:22:55 +0000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2018-05-11 13:56:23 +1000 |
commit | fdba503fdfc647ee8a244002f1581e869c1f3d90 (patch) | |
tree | 7278017d65e201009f629acd160bec40f22e7914 /auth2.c | |
parent | e7751aa4094d51a9bc00778aa8d07e22934c55ee (diff) |
upstream: Explicit cast when snprintf'ing an uint64. Prevents
warnings on platforms where int64 is long not long long. ok djm@
OpenBSD-Commit-ID: 9c5359e2fbfce11dea2d93f7bc257e84419bd001
Diffstat (limited to 'auth2.c')
-rw-r--r-- | auth2.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: auth2.c,v 1.146 2018/04/13 03:57:26 dtucker Exp $ */ | 1 | /* $OpenBSD: auth2.c,v 1.147 2018/05/11 03:22:55 dtucker Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2000 Markus Friedl. All rights reserved. | 3 | * Copyright (c) 2000 Markus Friedl. All rights reserved. |
4 | * | 4 | * |
@@ -220,7 +220,8 @@ user_specific_delay(const char *user) | |||
220 | u_char *hash = xmalloc(len); | 220 | u_char *hash = xmalloc(len); |
221 | double delay; | 221 | double delay; |
222 | 222 | ||
223 | (void)snprintf(b, sizeof b, "%llu%s", options.timing_secret, user); | 223 | (void)snprintf(b, sizeof b, "%llu%s", |
224 | (unsigned long long)options.timing_secret, user); | ||
224 | if (ssh_digest_memory(SSH_DIGEST_SHA512, b, strlen(b), hash, len) != 0) | 225 | if (ssh_digest_memory(SSH_DIGEST_SHA512, b, strlen(b), hash, len) != 0) |
225 | fatal("%s: ssh_digest_memory", __func__); | 226 | fatal("%s: ssh_digest_memory", __func__); |
226 | /* 0-4.2 ms of delay */ | 227 | /* 0-4.2 ms of delay */ |