diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2020-07-05 18:32:02 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2020-07-05 18:32:02 +0200 |
commit | 7d3a63f4e88b4a7f54bfe72904ee33239bf0e620 (patch) | |
tree | 39e464f063abab8b2b4426239c1fa96ebc836ca5 /libmachdev/ds_routines.c | |
parent | 9b64495c6cd22cd65f118c18a36b2de7cbde4344 (diff) | |
download | hurd-7d3a63f4e88b4a7f54bfe72904ee33239bf0e620.tar.gz hurd-7d3a63f4e88b4a7f54bfe72904ee33239bf0e620.tar.bz2 hurd-7d3a63f4e88b4a7f54bfe72904ee33239bf0e620.zip |
pflocal: Fix referencing connection queue entries.
As asserted in connq_destroy, for each entry in the queue we are supposed to
keep a reference to the socket that contains the queue. So we need to
keep it when connecting and release it when accepting.
* pflocal/socket.c (S_socket_connect): Do not deref the peer socket when
sock_connect succeeded.
(S_socket_accept): Deref the socket when the accept succeeded.
Diffstat (limited to 'libmachdev/ds_routines.c')
0 files changed, 0 insertions, 0 deletions