mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-10 18:47:22 +00:00
ID: 3611306 - 'lib/ipmi_tsol.c' - fix always fail in case of error
Commit fixes bug introduced by fix for ID#3600946 where an error case was missing braces, so it would always fail. Commit for Dan Gora
This commit is contained in:
parent
c72afa37ee
commit
723e3da037
@ -456,9 +456,10 @@ ipmi_tsol_main(struct ipmi_intf * intf, int argc, char ** argv)
|
|||||||
*/
|
*/
|
||||||
if (recvip == NULL) {
|
if (recvip == NULL) {
|
||||||
result = intf->open(intf); /* must connect first */
|
result = intf->open(intf); /* must connect first */
|
||||||
if (result < 0)
|
if (result < 0) {
|
||||||
close(fd_socket);
|
close(fd_socket);
|
||||||
return -1;
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
mylen = sizeof(myaddr);
|
mylen = sizeof(myaddr);
|
||||||
if (getsockname(intf->fd, (struct sockaddr *)&myaddr, &mylen) < 0) {
|
if (getsockname(intf->fd, (struct sockaddr *)&myaddr, &mylen) < 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user