projects
/
platform
/
core
/
connectivity
/
net-config.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8404f0f
)
Fix NULL pointer dereference while closing file pointer
34/232434/1
submit/tizen/20200504.152605
author
Nishant Chaprana
<n.chaprana@samsung.com>
Mon, 4 May 2020 14:59:44 +0000
(20:29 +0530)
committer
Nishant Chaprana
<n.chaprana@samsung.com>
Mon, 4 May 2020 14:59:44 +0000
(20:29 +0530)
Change-Id: I4ae4912a3ee85798ff2a4aebd5dcfe8508bc22ee
Signed-off-by: Nishant Chaprana <n.chaprana@samsung.com>
src/ethernet.c
patch
|
blob
|
history
diff --git
a/src/ethernet.c
b/src/ethernet.c
index 81c6a3f722d0d9e1b790a591a487b8b350fdd1f2..a6ba2b44c5b0faf5b747f3262dfed0a8d2fbb180 100644
(file)
--- a/
src/ethernet.c
+++ b/
src/ethernet.c
@@
-178,10
+178,9
@@
static gboolean __netconfig_set_eap_config_file(GVariant *fields)
fprintf (fp, "}"); /* closing of conf file */
fflush(fp);
+ fclose(fp);
out:
g_free(filename);
- fclose(fp);
- fp = NULL;
return err;
}