[Openvpn-devel] make %x destination unsigned

Message ID 20220512231901.1077306-1-heiko@ist.eigentlich.net
State New
Headers show
Series
  • [Openvpn-devel] make %x destination unsigned
Related show

Commit Message

Heiko Hund May 12, 2022, 11:19 p.m.
The %x specifier requires for the argument to be an unsigned int.

Signed-off-by: Heiko Hund <heiko@ist.eigentlich.net>
---
 src/openvpn/options.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch

diff --git a/src/openvpn/options.c b/src/openvpn/options.c
index 9ff384d0..3dbd3fab 100644
--- a/src/openvpn/options.c
+++ b/src/openvpn/options.c
@@ -1104,7 +1104,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)
     {