Skip to content
This repository has been archived by the owner on Jun 30, 2021. It is now read-only.

Commit

Permalink
exit failure in example_https when SSL is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanFrench committed Dec 6, 2017
1 parent 6ecf7e7 commit 0848e08
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions examples/https/example_https.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include "internal.h"
#include "evhtp/evhtp.h"

#ifndef EVHTP_DISABLE_SSL
static void
http__callback_(evhtp_request_t * req, void * arg) {
return evhtp_send_reply(req, EVHTP_RES_OK);
Expand Down Expand Up @@ -219,9 +220,11 @@ parse__ssl_opts_(int argc, char ** argv) {

return ssl_config;
} /* parse__ssl_opts_ */
#endif

int
main(int argc, char ** argv) {
#ifndef EVHTP_DISABLE_SSL
evhtp_t * htp;
struct event_base * evbase;

Expand Down Expand Up @@ -250,7 +253,9 @@ main(int argc, char ** argv) {
}

event_base_loop(evbase, 0);


return 0;
#else
log_error("Not compiled with SSL support, go away");
return EXIT_FAILURE;
#endif
}

0 comments on commit 0848e08

Please sign in to comment.