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) ;