Fix the return value for _transaction_submit 29/140129/2
authorTaesoo Jun <steve.jun@samsung.com>
Mon, 24 Jul 2017 03:49:28 +0000 (12:49 +0900)
committerSeonah Moon <seonah1.moon@samsung.com>
Mon, 24 Jul 2017 09:33:21 +0000 (18:33 +0900)
Change-Id: I0df3a173068d1a6b814fa858c010c5551f7cfd51

src/http_transaction.c

index 08e9fb4..8f65c8b 100644 (file)
@@ -471,10 +471,12 @@ int _transaction_submit(gpointer user_data)
        }
 
        ret = curl_multi_perform(session->multi_handle, &session->still_running);
-       if (ret == CURLM_OK)
+       if (ret == CURLM_OK) {
                _http_transaction_start_timer(5, curl_request_check, transaction);
-       else
+       } else {
                print_curl_multi_errorCode(ret);
+               ret = HTTP_ERROR_OPERATION_FAILED;
+       }
 
        return ret;
 }