Compare commits
No commits in common. "b6dff4d2f3c4a276e4084366ec62ef66fc64f710" and "6c080a438c1e477af2e7657d6bd27c888a307fe6" have entirely different histories.
b6dff4d2f3
...
6c080a438c
@ -23,8 +23,6 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <stddef.h>
|
|
||||||
|
|
||||||
#include <openssl/types.h>
|
#include <openssl/types.h>
|
||||||
|
|
||||||
#include <why2/flags.h>
|
#include <why2/flags.h>
|
||||||
|
@ -1152,12 +1152,10 @@ void *why2_authority_communicate_thread(void *arg)
|
|||||||
//ALLOCATE
|
//ALLOCATE
|
||||||
buffer = why2_calloc(buffer_size + 1, sizeof(char));
|
buffer = why2_calloc(buffer_size + 1, sizeof(char));
|
||||||
|
|
||||||
//READ
|
fread(buffer, buffer_size, 1, cert); //READ
|
||||||
if (fread(buffer, buffer_size, 1, cert) == 1)
|
|
||||||
{
|
//SEND STATUS
|
||||||
//SEND STATUS
|
why2_send_socket_code(NULL, NULL, NULL, connection, strcmp(buffer, message) == 0 ? WHY2_CHAT_CODE_SUCCESS : WHY2_CHAT_CODE_FAILURE);
|
||||||
why2_send_socket_code(NULL, NULL, NULL, connection, strcmp(buffer, message) == 0 ? WHY2_CHAT_CODE_SUCCESS : WHY2_CHAT_CODE_FAILURE);
|
|
||||||
}
|
|
||||||
|
|
||||||
//DEALLOCATION
|
//DEALLOCATION
|
||||||
why2_deallocate(buffer);
|
why2_deallocate(buffer);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user