Browse Source
Merge pull request #285 from Logan007/fixLzoError
call lzo_init() only if required
pull/286/head
Luca Deri
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
5 additions and
4 deletions
-
src/edge_utils.c
|
@ -233,6 +233,7 @@ n2n_edge_t* edge_init(const tuntap_dev *dev, const n2n_edge_conf_t *conf, int *r |
|
|
eee->pending_peers = NULL; |
|
|
eee->pending_peers = NULL; |
|
|
eee->sup_attempts = N2N_EDGE_SUP_ATTEMPTS; |
|
|
eee->sup_attempts = N2N_EDGE_SUP_ATTEMPTS; |
|
|
|
|
|
|
|
|
|
|
|
if(eee->conf.compression == N2N_COMPRESSION_ID_LZO) |
|
|
if(lzo_init() != LZO_E_OK) { |
|
|
if(lzo_init() != LZO_E_OK) { |
|
|
traceEvent(TRACE_ERROR, "LZO compression error"); |
|
|
traceEvent(TRACE_ERROR, "LZO compression error"); |
|
|
goto edge_init_error; |
|
|
goto edge_init_error; |
|
|