Compare commits

..

No commits in common. "b6dff4d2f3c4a276e4084366ec62ef66fc64f710" and "6c080a438c1e477af2e7657d6bd27c888a307fe6" have entirely different histories.

2 changed files with 4 additions and 8 deletions

View File

@ -23,8 +23,6 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
extern "C" {
#endif
#include <stddef.h>
#include <openssl/types.h>
#include <why2/flags.h>

View File

@ -1152,12 +1152,10 @@ void *why2_authority_communicate_thread(void *arg)
//ALLOCATE
buffer = why2_calloc(buffer_size + 1, sizeof(char));
//READ
if (fread(buffer, buffer_size, 1, cert) == 1)
{
//SEND STATUS
why2_send_socket_code(NULL, NULL, NULL, connection, strcmp(buffer, message) == 0 ? WHY2_CHAT_CODE_SUCCESS : WHY2_CHAT_CODE_FAILURE);
}
fread(buffer, buffer_size, 1, cert); //READ
//SEND STATUS
why2_send_socket_code(NULL, NULL, NULL, connection, strcmp(buffer, message) == 0 ? WHY2_CHAT_CODE_SUCCESS : WHY2_CHAT_CODE_FAILURE);
//DEALLOCATION
why2_deallocate(buffer);