diff options
author | djm@openbsd.org <djm@openbsd.org> | 2016-09-21 17:44:20 +0000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2016-09-22 03:45:03 +1000 |
commit | f83a0cfe16c7a73627b46a9a94e40087d60f32fb (patch) | |
tree | 6f8b81a488e76d2d9500c4e2997c576043c62455 /auth2-pubkey.c | |
parent | 5f63ab474f58834feca4f35c498be03b7dd38a16 (diff) |
upstream commit
cast uint64_t for printf
Upstream-ID: 76d23e89419ccbd2320f92792a6d878211666ac1
Diffstat (limited to 'auth2-pubkey.c')
-rw-r--r-- | auth2-pubkey.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/auth2-pubkey.c b/auth2-pubkey.c index cc5466613..375d91cbd 100644 --- a/auth2-pubkey.c +++ b/auth2-pubkey.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: auth2-pubkey.c,v 1.58 2016/09/21 01:34:45 djm Exp $ */ | 1 | /* $OpenBSD: auth2-pubkey.c,v 1.59 2016/09/21 17:44:20 djm Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2000 Markus Friedl. All rights reserved. | 3 | * Copyright (c) 2000 Markus Friedl. All rights reserved. |
4 | * | 4 | * |
@@ -695,7 +695,8 @@ match_principals_command(struct passwd *user_pw, const struct sshkey *key) | |||
695 | error("%s: sshkey_to_base64 failed: %s", __func__, ssh_err(r)); | 695 | error("%s: sshkey_to_base64 failed: %s", __func__, ssh_err(r)); |
696 | goto out; | 696 | goto out; |
697 | } | 697 | } |
698 | snprintf(serial_s, sizeof(serial_s), "%llu", cert->serial); | 698 | snprintf(serial_s, sizeof(serial_s), "%llu", |
699 | (unsigned long long)cert->serial); | ||
699 | for (i = 1; i < ac; i++) { | 700 | for (i = 1; i < ac; i++) { |
700 | tmp = percent_expand(av[i], | 701 | tmp = percent_expand(av[i], |
701 | "u", user_pw->pw_name, | 702 | "u", user_pw->pw_name, |