|
@ -1588,7 +1588,7 @@ static void readFromIPSocket(n2n_edge_t * eee, int in_sock) { |
|
|
(signed int)recvlen, sock_to_cstr(sockbuf1, &sender)); |
|
|
(signed int)recvlen, sock_to_cstr(sockbuf1, &sender)); |
|
|
|
|
|
|
|
|
if(eee->conf.header_encryption == HEADER_ENCRYPTION_ENABLED) |
|
|
if(eee->conf.header_encryption == HEADER_ENCRYPTION_ENABLED) |
|
|
if ( packet_header_decrypt (udp_buf, recvlen, (char *)eee->conf.community_name, eee->conf.header_encryption_ctx) < 0) { |
|
|
if( packet_header_decrypt (udp_buf, recvlen, (char *)eee->conf.community_name, eee->conf.header_encryption_ctx) == 0) { |
|
|
traceEvent(TRACE_DEBUG, "readFromIPSocket failed to decrypt header."); |
|
|
traceEvent(TRACE_DEBUG, "readFromIPSocket failed to decrypt header."); |
|
|
return; |
|
|
return; |
|
|
} |
|
|
} |
|
|