Fix a file descriptor leak in add_port_hook
commit0c5ca2127ac6e3c71e369242376d27429c3aee5e
authorVolker Lendecke <vl@samba.org>
Sat, 28 Jun 2008 14:09:34 +0000 (28 16:09 +0200)
committerVolker Lendecke <vl@samba.org>
Sat, 28 Jun 2008 14:10:01 +0000 (28 16:10 +0200)
tree16059a7549abf52253ee09457a640b50a6a9b876
parent7a853d265b3701a8a0003c4e3771c4a2fa1c6156
Fix a file descriptor leak in add_port_hook

This was probably cut&paste from add_printer_hook which further down has the
unconditional close(fd). In add_port_hook() we're not interested in the output
of 'addport command', so don't create the out fd.
source/rpc_server/srv_spoolss_nt.c