Skip to content

Commit

Permalink
Fix build for WITH_TLS=no.
Browse files Browse the repository at this point in the history
Closes #1250. Thanks to bmparr.
  • Loading branch information
ralight committed Apr 29, 2019
1 parent d526433 commit 42fb2f5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
1.6.2 - 201905xx
================

Broker:
- Fix build for WITH_TLS=no. Closes #1250.


1.6.1 - 20190426
================

Expand Down
2 changes: 1 addition & 1 deletion src/net.c
Original file line number Diff line number Diff line change
Expand Up @@ -412,13 +412,13 @@ int net__socket_listen(struct mosquitto__listener *listener)
struct addrinfo hints;
struct addrinfo *ainfo, *rp;
char service[10];
int rc;
#ifndef WIN32
int ss_opt = 1;
#else
char ss_opt = 1;
#endif
#ifdef WITH_TLS
int rc;
X509_STORE *store;
X509_LOOKUP *lookup;
ENGINE *engine = NULL;
Expand Down

0 comments on commit 42fb2f5

Please sign in to comment.