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.
This commit is contained in:
Christopher Faulet 2020-10-07 14:37:00 +02:00
parent 7b06d3adaa
commit 9589aa0fe5

View File

@ -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;
}
/* <uid> and <gid> different of -1 will be used to change the socket owner.