From: Heiko Hund Date: Thu, 12 May 2022 23:19:01 +0000 (+0200) Subject: make %x destination unsigned X-Git-Tag: v2.6_beta1~172 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2f702291484ccecba455b039bc4c04b4cf87e972;p=thirdparty%2Fopenvpn.git make %x destination unsigned The %x specifier requires for the argument to be an unsigned int. Signed-off-by: Heiko Hund Acked-by: Frank Lichtenheld Message-Id: <20220512231901.1077306-1-heiko@ist.eigentlich.net> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg24336.html Signed-off-by: Gert Doering --- diff --git a/src/openvpn/options.c b/src/openvpn/options.c index 750444fec..233c02e04 100644 --- a/src/openvpn/options.c +++ b/src/openvpn/options.c @@ -1142,7 +1142,7 @@ parse_hash_fingerprint(const char *str, int nbytes, int msglevel, struct gc_aren ALLOC_OBJ_CLEAR_GC(ret, struct verify_hash_list, gc); char term = 0; - int byte; + unsigned int byte; while (*cp && i < nbytes) {