projects
/
platform
/
core
/
api
/
nsd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e6f87be
)
Check a length of interface name
00/263100/1
author
Seonah Moon
<seonah1.moon@samsung.com>
Thu, 26 Aug 2021 06:41:14 +0000
(15:41 +0900)
committer
Seonah Moon
<seonah1.moon@samsung.com>
Thu, 26 Aug 2021 06:41:20 +0000
(15:41 +0900)
Change-Id: I3595f5140a905ef59a88945677293e9a285ca12f
src/dns-sd/dns-sd.c
patch
|
blob
|
history
diff --git
a/src/dns-sd/dns-sd.c
b/src/dns-sd/dns-sd.c
index 74f7656ef1235de7b27d1e39c49558912866e077..89f211bc5a9095b9159e85d60ffd9861d7763c43 100644
(file)
--- a/
src/dns-sd/dns-sd.c
+++ b/
src/dns-sd/dns-sd.c
@@
-2088,7
+2088,7
@@
EXPORT_API int dnssd_create_remote_service(const char *service_type,
remote_handle->watch_id = 0;
found = GET_FOUND_DATA_P(remote_handle);
- if (interface) {
+ if (interface
&& strlen(interface) != 0
) {
unsigned int if_index;
if ((if_index = if_nametoindex(interface)) == 0) {
DNSSD_LOGE("Invalid interface name");