projects
/
framework
/
connectivity
/
connman.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f8f47e8
)
inet: Fix file descriptor leak when comparing subnets
author
Jukka Rissanen
<jukka.rissanen@linux.intel.com>
Mon, 31 Oct 2011 10:53:11 +0000
(12:53 +0200)
committer
Samuel Ortiz
<sameo@linux.intel.com>
Mon, 7 Nov 2011 11:34:48 +0000
(12:34 +0100)
src/inet.c
patch
|
blob
|
history
diff --git
a/src/inet.c
b/src/inet.c
index
595f52d
..
c941718
100644
(file)
--- a/
src/inet.c
+++ b/
src/inet.c
@@
-1244,6
+1244,9
@@
connman_bool_t connman_inet_compare_subnet(int index, const char *host)
close(sk);
return FALSE;
}
+
+ close(sk);
+
addr = (struct sockaddr_in *)&ifr.ifr_addr;
if_addr = addr->sin_addr.s_addr;