Fix a file descriptor leak in add_port_hook
commit30fb2377da1848959afc1cac0f9098a4d06d9959
authorVolker Lendecke <vl@samba.org>
Sat, 28 Jun 2008 14:09:34 +0000 (28 16:09 +0200)
committerKarolin Seeger <kseeger@samba.org>
Sun, 29 Jun 2008 14:35:48 +0000 (29 16:35 +0200)
treeac8598101734ee046c50f0492179729eabf8383f
parentdf391d46f55a4c2b55a4ac6e5d0284ef29ca6134
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.
(cherry picked from commit 0c5ca2127ac6e3c71e369242376d27429c3aee5e)
source/rpc_server/srv_spoolss_nt.c