(spawn_child): close the newly created socket in the packet, it's not

used.  from <shadow@dementia.org>


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@9579 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
2001-01-29 08:43:01 +00:00
parent 8ed0cf08cc
commit e89f92ca36

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2000 Kungliga Tekniska H<>gskolan
* Copyright (c) 2000 - 2001 Kungliga Tekniska H<>gskolan
* (Royal Institute of Technology, Stockholm, Sweden).
* All rights reserved.
*
@@ -159,6 +159,8 @@ spawn_child(krb5_context context, int *socks, int num_socks, int this_sock)
if(s != STDIN_FILENO && s != STDOUT_FILENO)
close(s);
return 0;
} else {
close(s);
}
return 1;
}