projects
/
sdk
/
target
/
sdbd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7c0610a
)
Fixed SVACE issue.
23/91323/1
accepted/tizen/3.0/ivi/20161028.151319
accepted/tizen/3.0/mobile/20161028.143214
accepted/tizen/3.0/tv/20161028.143513
accepted/tizen/3.0/wearable/20161028.150822
accepted/tizen/common/20161007.060704
accepted/tizen/ivi/20161007.103840
accepted/tizen/mobile/20161007.103852
accepted/tizen/tv/20161007.103850
accepted/tizen/wearable/20161007.103847
submit/tizen/20161007.054049
submit/tizen_3.0/20161028.062323
submit/tizen_3.0/20161028.092423
author
Kim Gunsoo
<gunsoo83.kim@samsung.com>
Fri, 7 Oct 2016 04:50:46 +0000
(13:50 +0900)
committer
Kim Gunsoo
<gunsoo83.kim@samsung.com>
Fri, 7 Oct 2016 04:52:48 +0000
(13:52 +0900)
- Remove the vulnerable function 'strerror()'.
Change-Id: I6f056b85a6ec55ab7221fd977e6da61558432904
Signed-off-by: Kim Gunsoo <gunsoo83.kim@samsung.com>
src/transport_local.c
patch
|
blob
|
history
diff --git
a/src/transport_local.c
b/src/transport_local.c
index 16a595c1a93c7b146d28b75608c1436208746d02..32e1f498a5d566a09d05abe4bf8e99a03833db80 100644
(file)
--- a/
src/transport_local.c
+++ b/
src/transport_local.c
@@
-298,7
+298,7
@@
static void *server_socket_thread(void * arg)
int ret = -1;
ret = keep_alive(fd, 1, SDB_KEEPALIVE_CNT, SDB_KEEPALIVE_IDLE, SDB_KEEPALIVE_INTVL);
if (ret < 0) {
- D("failed to set keep alive option. FD(%d), err
or=%s\n", fd, strerror(errno)
);
+ D("failed to set keep alive option. FD(%d), err
no=%d\n", fd, errno
);
} else {
D("Success to set keep alive option. FD(%d), cnt=%d, idle=%d(sec), interval=%d(sec)\n",
fd, SDB_KEEPALIVE_CNT, SDB_KEEPALIVE_IDLE, SDB_KEEPALIVE_INTVL);