mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-01 10:06:57 +03:00
Fix crash in resolver on memory allocation failure (bug 23005)
This commit is contained in:
@ -471,6 +471,11 @@ __res_context_send (struct resolv_context *ctx,
|
||||
'\0',
|
||||
sizeof (struct sockaddr_in6)
|
||||
- sizeof (struct sockaddr_in));
|
||||
else
|
||||
{
|
||||
__set_errno (ENOMEM);
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
EXT(statp).nscount = statp->nscount;
|
||||
}
|
||||
|
Reference in New Issue
Block a user