aboutsummaryrefslogtreecommitdiffstats
path: root/src/stream.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/stream.c')
-rw-r--r--src/stream.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/stream.c b/src/stream.c
index b7e5c3c..744a904 100644
--- a/src/stream.c
+++ b/src/stream.c
@@ -586,7 +586,7 @@ int osmo_stream_cli_open2(struct osmo_stream_cli *cli, int reconnect)
return 0;
error_close_socket:
- close(ret);
+ close(cli->ofd.fd);
cli->ofd.fd = -1;
return -EIO;
}
@@ -654,7 +654,7 @@ int osmo_stream_cli_open(struct osmo_stream_cli *cli)
return 0;
error_close_socket:
- close(ret);
+ close(cli->ofd.fd);
cli->ofd.fd = -1;
return -EIO;
}