proccessing fread output on CA
This commit is contained in:
parent
6c080a438c
commit
44be9ad2f6
@ -1152,10 +1152,12 @@ void *why2_authority_communicate_thread(void *arg)
|
||||
//ALLOCATE
|
||||
buffer = why2_calloc(buffer_size + 1, sizeof(char));
|
||||
|
||||
fread(buffer, buffer_size, 1, cert); //READ
|
||||
|
||||
//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);
|
||||
}
|
||||
|
||||
//DEALLOCATION
|
||||
why2_deallocate(buffer);
|
||||
|
Loading…
x
Reference in New Issue
Block a user