Fix bootverbose affecting code logic in r294558.

Reported by:	Jilles Tjoelker <jilles@stack.nl>
This commit is contained in:
Alexander Motin 2017-01-05 16:30:13 +00:00
parent 0dbb4093ef
commit f9b66e4c7d

View File

@ -443,8 +443,9 @@ ctl_ha_connect(struct ha_softc *softc)
memcpy(&sa, &softc->ha_peer_in, sizeof(sa));
error = soconnect(so, (struct sockaddr *)&sa, td);
if (error != 0 && bootverbose) {
printf("%s: soconnect() error %d\n", __func__, error);
if (error != 0) {
if (bootverbose)
printf("%s: soconnect() error %d\n", __func__, error);
goto out;
}
return (0);