about summary refs log tree commit diff
path: root/shared/nm-utils/nm-random-utils.c
diff options
context:
space:
mode:
authorJeremy Bicha <jbicha@ubuntu.com>2018-02-08 17:55:49 -0500
committerJeremy Bicha <jbicha@ubuntu.com>2018-02-08 17:55:49 -0500
commitf1c906035c6ea7eb635664835c153aed553dc2e5 (patch)
tree7b870b6cef1f902486dc706084124c6964b342a6 /shared/nm-utils/nm-random-utils.c
parentd6158994abe7b2be73443f933ed7fdcc40954c24 (diff)
parentd0408a3e3b1cc6effec321d098008ef0c4acf91b (diff)
Merge tag 'debian/1.10.4-1' into bionic
network-manager Debian release 1.10.4-1
Diffstat (limited to 'shared/nm-utils/nm-random-utils.c')
-rw-r--r--shared/nm-utils/nm-random-utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shared/nm-utils/nm-random-utils.c b/shared/nm-utils/nm-random-utils.c
index 5d9e29da..65986b3d 100644
--- a/shared/nm-utils/nm-random-utils.c
+++ b/shared/nm-utils/nm-random-utils.c
@@ -120,7 +120,7 @@ fd_open:
 				goto fd_open;
 		} else {
 			r = nm_utils_fd_read_loop_exact (fd, buf, n, TRUE);
-			close (fd);
+			nm_close (fd);
 			if (r >= 0)
 				urandom_success = TRUE;
 		}