(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:
@@ -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).
|
* (Royal Institute of Technology, Stockholm, Sweden).
|
||||||
* All rights reserved.
|
* 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)
|
if(s != STDIN_FILENO && s != STDOUT_FILENO)
|
||||||
close(s);
|
close(s);
|
||||||
return 0;
|
return 0;
|
||||||
|
} else {
|
||||||
|
close(s);
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user