Skip to content

Commit ad7c6d8

Browse files
authored
Merge pull request #73 from douzzer/20250903-wolfsentry_inet4_ntoa-BUFFER_TOO_SMALL
20250903-wolfsentry_inet4_ntoa-BUFFER_TOO_SMALL
2 parents c473880 + 74cad8d commit ad7c6d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/routes.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3751,7 +3751,7 @@ WOLFSENTRY_API int wolfsentry_inet4_ntoa(const byte *addr, unsigned int addr_bit
37513751
*buflen -= buflen2;
37523752
if (i < 3) {
37533753
if (*buflen < 2)
3754-
WOLFSENTRY_RETURN_OK;
3754+
WOLFSENTRY_ERROR_RETURN(BUFFER_TOO_SMALL);
37553755
*buf++ = '.';
37563756
--*buflen;
37573757
}

0 commit comments

Comments
 (0)