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
authorTaeyoung Kim <ty317.kim@samsung.com>
Tue, 2 Apr 2013 09:09:40 +0000 (18:09 +0900)
committerTaeyoung 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

index 2f2611b..289992f 100644 (file)
@@ -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) {