Skip to content

Commit 1a5d94d

Browse files
committed
Temporary build fix
1 parent a052959 commit 1a5d94d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ext/uri/uriparser/src/UriSetHostCommon.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,9 @@ int URI_FUNC(InternalSetHostMm)(URI_TYPE(Uri) * uri,
219219
{
220220
const int res = URI_FUNC(ParseIpFourAddress)(uri->hostData.ip4->data, first, afterLast);
221221
assert(res == URI_SUCCESS); /* because checked for well-formedness earlier */
222+
if (res != URI_SUCCESS) {
223+
return URI_ERROR_MALLOC;
224+
}
222225
}
223226
}
224227
break;

0 commit comments

Comments
 (0)