From 9589aa0fe558e2e538af4db60da32299b5b9d710 Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Wed, 7 Oct 2020 14:37:00 +0200 Subject: [PATCH] CLEANUP: sock-unix: Remove an unreachable goto clause Coverity reported dead code in sock_unix_bind_receiver() function. A goto clause is unreachable because of the preceeding if/else block. This patch should fix the issue #865. No backport needed. --- src/sock_unix.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/sock_unix.c b/src/sock_unix.c index a3056df93..2be8d6bfb 100644 --- a/src/sock_unix.c +++ b/src/sock_unix.c @@ -252,7 +252,6 @@ int sock_unix_bind_receiver(struct receiver *rx, void (*handler)(int fd), char * memprintf(errmsg, "cannot bind UNIX socket (%s)", strerror(errno)); goto bind_close_return; } - goto err_unlink_temp; } /* and different of -1 will be used to change the socket owner.