]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
make %x destination unsigned
authorHeiko Hund <heiko@ist.eigentlich.net>
Thu, 12 May 2022 23:19:01 +0000 (01:19 +0200)
committerGert Doering <gert@greenie.muc.de>
Tue, 28 Jun 2022 20:56:15 +0000 (22:56 +0200)
The %x specifier requires for the argument to be an unsigned int.

Signed-off-by: Heiko Hund <heiko@ist.eigentlich.net>
Acked-by: Frank Lichtenheld <frank@lichtenheld.com>
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 <gert@greenie.muc.de>
src/openvpn/options.c

index 750444feca3883d346c6a16d7b2d208e80f10315..233c02e049e0be3de0217646fedbf0f4b988160d 100644 (file)
@@ -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)
     {