Skip to content

Commit

Permalink
This patch addresses the suggestion from bug 1351. It also adds a che…
Browse files Browse the repository at this point in the history
…ck upon the "introduced" return value.
  • Loading branch information
skinkie committed Jun 8, 2012
1 parent 8127eeb commit 4346be2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cherokee/handler_dbslayer.c
Expand Up @@ -102,7 +102,7 @@ send_query (cherokee_handler_dbslayer_t *hdl)
return ret_ok;
}

static void
static ret_t
cherokee_client_headers (cherokee_handler_dbslayer_t *hdl)
{
ret_t ret;
Expand Down Expand Up @@ -163,7 +163,9 @@ cherokee_handler_dbslayer_init (cherokee_handler_dbslayer_t *hdl)

/* Check client headers
*/
cherokee_client_headers (hdl);
ret = cherokee_client_headers (hdl);
if (unlikely (ret != ret_ok))
return ret;

/* Get a reference to the target host
*/
Expand Down

0 comments on commit 4346be2

Please sign in to comment.