From ac4ea442f3c70254def5c2f8aee592cddb5eef51 Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Fri, 20 Jul 2012 23:56:58 +0200 Subject: Hurd: sendto: do not crash when ADDR is null Create a new create_address_port subroutine to isolate the address port creation (for both local and remove sockets), and use it inside HURD_DPORT_USE. Also intialize APORT to MACH_PORT_NULL and make sure to always deallocate it, when not null. --- ChangeLog | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index cb1dfaf108..03baa697ef 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2012-07-20 Pino Toscano + + * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine. + (__sendto): Use create_address_port. Initialize APORT and deallocate + it if not null. + 2012-07-20 Joseph Myers * elf/Makefile (check-data): Remove. -- cgit v1.2.3