Merge branch 'master' of https://git.telodendria.io/Telodendria/Telodendria
Some checks failed
Compile Telodendria / Compile Telodendria (x86, alpine-v3.19) (push) Has been cancelled
Compile Telodendria / Compile Telodendria (x86, debian-v12.4) (push) Has been cancelled
Compile Telodendria / Compile Telodendria (x86, freebsd-v14.0) (push) Has been cancelled
Compile Telodendria / Compile Telodendria (x86, netbsd-v9.3) (push) Has been cancelled
Compile Telodendria / Compile Telodendria (x86_64, alpine-v3.19) (push) Has been cancelled
Compile Telodendria / Compile Telodendria (x86_64, debian-v12.4) (push) Has been cancelled
Compile Telodendria / Compile Telodendria (x86_64, freebsd-v14.0) (push) Has been cancelled
Compile Telodendria / Compile Telodendria (x86_64, netbsd-v9.3) (push) Has been cancelled
Compile Telodendria / Compile Telodendria (x86_64, openbsd-v7.4) (push) Has been cancelled

This commit is contained in:
lda 2024-05-01 21:02:08 +02:00
commit b72f18538d
2 changed files with 1 additions and 3 deletions

View file

@ -152,7 +152,7 @@ ParseIPv6(char **str, char **out)
goto fail; goto fail;
} }
while ((c = Iterate(str)) && IsIPv6Char(c)) while ((c = Iterate(str)) && IsIPv6Char(c) && digits < 8)
{ {
char *ipv4; char *ipv4;
if (isxdigit(c)) if (isxdigit(c))

View file

@ -185,8 +185,6 @@ ROUTE_IMPL(RouteUserProfile, path, argp)
finish: finish:
ConfigUnlock(&config); ConfigUnlock(&config);
/* Username is handled by the router, freeing it would cause issues. */
Free(entry);
UserIdFree(userId); UserIdFree(userId);
UserUnlock(user); UserUnlock(user);
JsonFree(request); JsonFree(request);