Skip to content

Commit

Permalink
Merge pull request #20 from sm00th/issue15
Browse files Browse the repository at this point in the history
Fix for issue #15. Client retcode on failed get_addr.
  • Loading branch information
p3ck committed Sep 18, 2014
2 parents 5167565 + bb8dec6 commit bf03d3e
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 bf03d3e

Please sign in to comment.