mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-31 01:35:11 +02:00
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
This commit is contained in:
parent
e7751aa409
commit
fdba503fdf
5
auth2.c
5
auth2.c
@ -1,4 +1,4 @@
|
|||||||
/* $OpenBSD: auth2.c,v 1.146 2018/04/13 03:57:26 dtucker Exp $ */
|
/* $OpenBSD: auth2.c,v 1.147 2018/05/11 03:22:55 dtucker Exp $ */
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 2000 Markus Friedl. All rights reserved.
|
* Copyright (c) 2000 Markus Friedl. All rights reserved.
|
||||||
*
|
*
|
||||||
@ -220,7 +220,8 @@ user_specific_delay(const char *user)
|
|||||||
u_char *hash = xmalloc(len);
|
u_char *hash = xmalloc(len);
|
||||||
double delay;
|
double delay;
|
||||||
|
|
||||||
(void)snprintf(b, sizeof b, "%llu%s", options.timing_secret, user);
|
(void)snprintf(b, sizeof b, "%llu%s",
|
||||||
|
(unsigned long long)options.timing_secret, user);
|
||||||
if (ssh_digest_memory(SSH_DIGEST_SHA512, b, strlen(b), hash, len) != 0)
|
if (ssh_digest_memory(SSH_DIGEST_SHA512, b, strlen(b), hash, len) != 0)
|
||||||
fatal("%s: ssh_digest_memory", __func__);
|
fatal("%s: ssh_digest_memory", __func__);
|
||||||
/* 0-4.2 ms of delay */
|
/* 0-4.2 ms of delay */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user