mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-03-29 22:57:06 +00:00
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:
parent
7b06d3adaa
commit
9589aa0fe5
@ -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));
|
memprintf(errmsg, "cannot bind UNIX socket (%s)", strerror(errno));
|
||||||
goto bind_close_return;
|
goto bind_close_return;
|
||||||
}
|
}
|
||||||
goto err_unlink_temp;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* <uid> and <gid> different of -1 will be used to change the socket owner.
|
/* <uid> and <gid> different of -1 will be used to change the socket owner.
|
||||||
|
Loading…
Reference in New Issue
Block a user