Fix bootverbose affecting code logic in r294558.
Reported by: Jilles Tjoelker <jilles@stack.nl>
This commit is contained in:
parent
0dbb4093ef
commit
f9b66e4c7d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user