From ca567e76c320b30461feffd2333ede73b699c4d7 Mon Sep 17 00:00:00 2001 From: Andrey Vagin Date: Wed, 12 Sep 2012 17:49:36 +0400 Subject: [PATCH] sk-unix: add a peer only if it's not in a list yet I tried to fix that by: commit bc2ac71c1abddbe76893c0dc1f0421311786070c Author: Andrey Vagin Date: Wed Sep 12 15:16:39 2012 +0400 sk-unix: don't add a socket in a second time but made a mistake and now a peer would be added only if it's in a list. Signed-off-by: Andrey Vagin Signed-off-by: Pavel Emelyanov --- sk-unix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sk-unix.c b/sk-unix.c index a608c29c1..8fbe3975d 100644 --- a/sk-unix.c +++ b/sk-unix.c @@ -163,7 +163,7 @@ static int dump_one_unix_fd(int lfd, u32 id, const struct fd_parms *p) * It can be external socket, so we defer dumping * until all sockets the program owns are processed. */ - if (!peer->sd.already_dumped && !list_empty(&peer->list)) { + if (!peer->sd.already_dumped && list_empty(&peer->list)) { show_one_unix("Add a peer", peer); list_add_tail(&peer->list, &unix_sockets); }