Skip to content

Commit

Permalink
Fix compile error when not enable ssl for libuhttpd
Browse files Browse the repository at this point in the history
Signed-off-by: Jianhui Zhao <[email protected]>
  • Loading branch information
Jianhui Zhao committed Mar 9, 2018
1 parent 7273e1b commit 5ce9941
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/auth.c
Original file line number Diff line number Diff line change
Expand Up @@ -191,9 +191,12 @@ static int http_init(int port, bool ssl)
uh_add_action(srv, "/wifidog/temppass", http_callback_temppass);

return 0;

#if (UHTTPD_SSL_SUPPORT)
err:
srv->free(srv);
return -1;
#endif
}

int auth_init()
Expand Down

0 comments on commit 5ce9941

Please sign in to comment.