projects
/
platform
/
core
/
api
/
usb-accessory.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22bd04e
)
The problem of error handling for socket is fixed.
tizen_2.1
2.1b_release
accepted/tizen/20130520.100842
accepted/tizen_2.1/20130425.035525
submit/tizen/20130517.044736
submit/tizen_2.1/20130424.230654
author
Taeyoung Kim
<ty317.kim@samsung.com>
Tue, 2 Apr 2013 09:09:40 +0000
(18:09 +0900)
committer
Taeyoung Kim
<ty317.kim@samsung.com>
Tue, 2 Apr 2013 09:09:40 +0000
(18:09 +0900)
The parameter of close() cannot be negative value.
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
src/usb_accessory_private.c
patch
|
blob
|
history
diff --git
a/src/usb_accessory_private.c
b/src/usb_accessory_private.c
index
2f2611b
..
289992f
100644
(file)
--- a/
src/usb_accessory_private.c
+++ b/
src/usb_accessory_private.c
@@
-287,7
+287,7
@@
gboolean ipc_noti_client_cb(GIOChannel *gioCh, GIOCondition condition, gpointer
sockfd = accept(fd, (struct sockaddr *)&clientaddr, (socklen_t *)&clientlen);
if (sockfd == -1) {
USB_LOG("FAIL: accept()");
- goto out_
ipc_fd
;
+ goto out_
gio_unref
;
}
if(read_message(sockfd, inbuf, sizeof(inbuf)) < 0) {