From 702291b16daa386395febc34800dbb4cc6a40668 Mon Sep 17 00:00:00 2001 From: JacobBarthelmeh Date: Thu, 10 Jul 2025 17:35:57 -0600 Subject: [PATCH] fix inet_addr accounting for '.' character --- wolfssh/test.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wolfssh/test.h b/wolfssh/test.h index ea8f6b8c4..26ca90e35 100644 --- a/wolfssh/test.h +++ b/wolfssh/test.h @@ -150,6 +150,9 @@ a[i] += cp[j] - '0'; j++; } + if (cp[j] == '.') { + j++; /* increment past '.' */ + } } ret = ((a[3]<<24) + (a[2]<<16) + (a[1]<<8) + a[0]) ; return(ret) ;