projects
/
platform
/
core
/
connectivity
/
ua-manager.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2e0ce8f
)
Fix derefencing of null pointer issue
51/259551/1
accepted/tizen/unified/20210615.120246
submit/tizen/20210613.223512
author
rohit singh
<rohit.singh@samsung.com>
Wed, 9 Jun 2021 10:38:47 +0000
(16:08 +0530)
committer
rohit singh
<rohit.singh@samsung.com>
Wed, 9 Jun 2021 10:39:00 +0000
(16:09 +0530)
Return value of a function '__search_device' is dereferenced
inside __init_svc_user_mapping() function.
Change-Id: Ibeb9cdc49dc5fdfa8c94f036dca5c6802c0929eb
Signed-off-by: rohit.singh <rohit.singh@samsung.com>
ua-daemon/src/ua-manager-core.c
patch
|
blob
|
history
diff --git
a/ua-daemon/src/ua-manager-core.c
b/ua-daemon/src/ua-manager-core.c
index
7a58c30
..
6195c78
100755
(executable)
--- a/
ua-daemon/src/ua-manager-core.c
+++ b/
ua-daemon/src/ua-manager-core.c
@@
-1024,6
+1024,8
@@
static void __init_svc_user_mapping()
/* Search for devices */
ll = __search_device(device_id, svc_dev->app_num);
+ if (NULL == ll)
+ continue;
uam_db_device_info_t *device = ll->data;
uam_db_user_info_t *user_info = device->user;