Skip to content

Commit

Permalink
Fix for issue#15. Client retcode on failed get_addr.
Browse files Browse the repository at this point in the history
Returning appropriate retcode in case we failed to determine own address..
  • Loading branch information
sm00th committed Sep 18, 2014
1 parent 5167565 commit bb8dec6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/client.c
Original file line number Diff line number Diff line change
Expand Up @@ -1351,7 +1351,10 @@ int main(int argc, char *argv[]) {
soup_uri_free (control_uri);
soup_session_send_message (session, address_msg);
if (!SOUP_STATUS_IS_SUCCESSFUL(address_msg->status_code)) {
g_printerr ("%s\n", address_msg->reason_phrase);
g_set_error(&app_data->error, RESTRAINT_CLIENT_ERROR,
address_msg->status_code,
"Failed to determine own addr: %s.",
address_msg->reason_phrase);
goto cleanup;
}

Expand Down

0 comments on commit bb8dec6

Please sign in to comment.