getaddrinfo() returns addresses from, at least, ip(7) and ipv6(7),
but _addr() always uses sin_addr from struct sockaddr_in;
we're saved from wild unsoundness (or incompatibility)
by virtue of struct sockaddr_in6 having an always-0 u32 sin6_flowinfo
at the same offset, so we end up returning 0 anyway,
but in a round-about and definitely unintended way
Instead, limit the request to AF_INET, and fall through to the end
early, returning the default id=0
---
diff -ur uClibc-ng-1.0.41.orig/libc/inet/hostid.c uClibc-ng-1.0.41/libc/inet/hostid.c
--- uClibc-ng-1.0.41.orig/libc/inet/hostid.c 2022-05-20 17:07:47.000000000 +0200
+++ uClibc-ng-1.0.41/libc/inet/hostid.c 2022-06-01 19:09:21.971253011 +0200
@@ -61,8 +61,7 @@
* Mitch
*/
if (gethostname(host, HOST_NAME_MAX) >= 0 && *host) {
- struct addrinfo hints, *results, *addr;
- memset(&hints, 0, sizeof(struct addrinfo));
+ struct addrinfo hints = {.ai_family = AF_INET}, *results, *addr;
if (!getaddrinfo(host, NULL, &hints, &results)) {
for (addr = results; addr; addr = results->ai_next) {
/* Just so it doesn't look exactly like the
Do you want to restrict usage of your API key to specific domains? If yes, send a list of domains separated by space.
Example: https://ton.orghttps://ton.sh
These domains will be set as CORS allowed domains for your token.Your API token: 13754db76b1096b97af3544b328e4d71182a611de387d76d9ddbe75403ccc637
Allowed IPs: any
Allowed domains: any13754db76b1096b97af3544b328e4d71182a611de387d76d9ddbe75403ccc637o6264nkT2tOZVjg3fS2V5gUCTNahttps://swgoh.gg/p/766297226/Гарантия на товар
- Гарантия на каждый аккаунт 24 часа (Оставляете отзыв - продлите гарантию на неделю)
- Скриншот к отзыву обязателен
Связаться с поддержкой магазина: @xxxu7
Перейти по ссылке для публикации отзыва:
, DARK2WEB.BIZ, OFF-BOT.RU, NEURONS.BIZ. 🌳 New MTProto Proxy!
Server: Unknown
Port: 443
Secret: 7gEBAQEBAQEBAQEBAQEBAQFsaWIuYXJ2YW5jbG91ZC5jb20
• More: @TelMTProto