]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
upstream commit
authordjm@openbsd.org <djm@openbsd.org>
Wed, 21 Sep 2016 17:44:20 +0000 (17:44 +0000)
committerDamien Miller <djm@mindrot.org>
Wed, 21 Sep 2016 17:45:03 +0000 (03:45 +1000)
cast uint64_t for printf

Upstream-ID: 76d23e89419ccbd2320f92792a6d878211666ac1

auth2-pubkey.c

index cc5466613f7ca5da5d0d26e1eca02a85712bea81..375d91cbdc13b52eb3db502949b47e35ff881274 100644 (file)
@@ -1,4 +1,4 @@
-/* $OpenBSD: auth2-pubkey.c,v 1.58 2016/09/21 01:34:45 djm Exp $ */
+/* $OpenBSD: auth2-pubkey.c,v 1.59 2016/09/21 17:44:20 djm Exp $ */
 /*
  * Copyright (c) 2000 Markus Friedl.  All rights reserved.
  *
@@ -695,7 +695,8 @@ match_principals_command(struct passwd *user_pw, const struct sshkey *key)
                error("%s: sshkey_to_base64 failed: %s", __func__, ssh_err(r));
                goto out;
        }
-       snprintf(serial_s, sizeof(serial_s), "%llu", cert->serial);
+       snprintf(serial_s, sizeof(serial_s), "%llu",
+           (unsigned long long)cert->serial);
        for (i = 1; i < ac; i++) {
                tmp = percent_expand(av[i],
                    "u", user_pw->pw_name,