Change in libosmo-netif[master]: stream: Fix fd param passed to close() in error conditon

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

pespin gerrit-no-reply at lists.osmocom.org
Mon Oct 21 09:28:47 UTC 2019


pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmo-netif/+/15819 )


Change subject: stream: Fix fd param passed to close() in error conditon
......................................................................

stream: Fix fd param passed to close() in error conditon

Fixes: CID#205089, CID#205087
Change-Id: I65714f214b9962862cda01605c7c2c578c78d3c7
---
M src/stream.c
1 file changed, 2 insertions(+), 2 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/libosmo-netif refs/changes/19/15819/1

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 @@
 	return 0;
 
 error_close_socket:
-	close(ret);
+	close(cli->ofd.fd);
 	cli->ofd.fd = -1;
 	return -EIO;
 }
@@ -654,7 +654,7 @@
 	return 0;
 
 error_close_socket:
-	close(ret);
+	close(cli->ofd.fd);
 	cli->ofd.fd = -1;
 	return -EIO;
 }

-- 
To view, visit https://gerrit.osmocom.org/c/libosmo-netif/+/15819
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: libosmo-netif
Gerrit-Branch: master
Gerrit-Change-Id: I65714f214b9962862cda01605c7c2c578c78d3c7
Gerrit-Change-Number: 15819
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20191021/36323f42/attachment.htm>


More information about the gerrit-log mailing list