aboutsummaryrefslogtreecommitdiff
path: root/pflocal/sock.h
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2023-09-04 00:50:09 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-09-04 00:50:09 +0200
commit0687986bb30a3c550ce056fc1170712c90188257 (patch)
tree08f6401179458d7fa98fc1b45280710751968aa3 /pflocal/sock.h
parentba9feb14c5f5780758b6d62ebb44cd90b99eccc4 (diff)
downloadhurd-0687986bb30a3c550ce056fc1170712c90188257.tar.gz
hurd-0687986bb30a3c550ce056fc1170712c90188257.tar.bz2
hurd-0687986bb30a3c550ce056fc1170712c90188257.zip
pflocal: Remove unused write_addr field
It was never set, and re-connecting a socket to another address would try to deref the port, thus crashing.
Diffstat (limited to 'pflocal/sock.h')
-rw-r--r--pflocal/sock.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/pflocal/sock.h b/pflocal/sock.h
index c686dec4..6a724d4c 100644
--- a/pflocal/sock.h
+++ b/pflocal/sock.h
@@ -74,10 +74,6 @@ struct sock
one could tell anyway). */
struct addr *addr;
- /* If this sock has been connected to another sock, then WRITE_ADDR is the
- addr of that sock. We *do* hold a reference to this addr. */
- struct addr *write_addr;
-
/* A connection queue to listen for incoming connections on. Once a socket
has one of these, it always does, and can never again be used for
anything but accepting incoming connections. */