mirror of git://sourceware.org/git/glibc.git
Hurd: hurdsock: reject negative domains
This commit is contained in:
parent
3faebe6abc
commit
63643c85d4
|
@ -1,3 +1,8 @@
|
||||||
|
2012-05-10 Pino Toscano <toscano.pino@tiscali.it>
|
||||||
|
|
||||||
|
* hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
|
||||||
|
and reject them.
|
||||||
|
|
||||||
2012-05-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
|
2012-05-10 Samuel Thibault <samuel.thibault@ens-lyon.org>
|
||||||
|
|
||||||
* sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
|
* sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/* _hurd_socket_server - Find the server for a socket domain.
|
/* _hurd_socket_server - Find the server for a socket domain.
|
||||||
Copyright (C) 1991,92,93,94,95,97,99 Free Software Foundation, Inc.
|
Copyright (C) 1991-2012 Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
|
@ -46,6 +46,12 @@ _hurd_socket_server (int domain, int dead)
|
||||||
{
|
{
|
||||||
socket_t server;
|
socket_t server;
|
||||||
|
|
||||||
|
if (domain < 0)
|
||||||
|
{
|
||||||
|
errno = EAFNOSUPPORT;
|
||||||
|
return MACH_PORT_NULL;
|
||||||
|
}
|
||||||
|
|
||||||
HURD_CRITICAL_BEGIN;
|
HURD_CRITICAL_BEGIN;
|
||||||
__mutex_lock (&lock);
|
__mutex_lock (&lock);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue