Skip to content

Commit

Permalink
Set ocsp request headers/data in the correct order
Browse files Browse the repository at this point in the history
Adding the Host header doesn't work if we already passed the req object
when creating OCSP_REQ_CTX object.

Fixes: #113
  • Loading branch information
daghf committed Sep 8, 2016
1 parent b834189 commit b3eb846
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hitch.c
Original file line number Diff line number Diff line change
Expand Up @@ -3419,7 +3419,7 @@ ocsp_query_responder(struct ev_loop *loop, ev_timer *w, int revents)
}
}

rctx = OCSP_sendreq_new(cbio, path, req, 0);
rctx = OCSP_sendreq_new(cbio, path, NULL, 0);
if (rctx == NULL) {
ERR("{ocsp} OCSP_sendreq_new failed\n");
refresh_hint = 60;
Expand Down

0 comments on commit b3eb846

Please sign in to comment.