1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-11 13:53:37 +00:00

fixed compiler warning

This commit is contained in:
Bryan Roe
2019-07-17 17:14:41 -07:00
parent 02f3d8a76f
commit 58f0230c7a

View File

@@ -3098,7 +3098,7 @@ ILibTransport_DoneState ILibStun_SendDtls(struct ILibStun_Module *obj, int sessi
{
r = (ILibTransport_DoneState)ILibAsyncUDPSocket_SendTo(((struct ILibStun_Module*)obj)->UDP, (struct sockaddr*)obj->dTlsSessions[session]->remoteInterface, obj->dTlsSessions[session]->writeBIOBuffer->data, obj->dTlsSessions[session]->writeBIOBuffer->length, ILibAsyncSocket_MemoryOwnership_USER);
}
BIO_reset(obj->dTlsSessions[session]->writeBIO);
ignore_result(BIO_reset(obj->dTlsSessions[session]->writeBIO));
}
return r;
}
@@ -6123,7 +6123,7 @@ void ILibStun_OnUDP(ILibAsyncUDPSocket_SocketModule socketModule, char* buffer,
ILibAsyncUDPSocket_SendTo(((struct ILibStun_Module*)obj)->UDP, (struct sockaddr*)remoteInterface, obj->dTlsSessions[existingSession]->writeBIOBuffer->data, obj->dTlsSessions[existingSession]->writeBIOBuffer->length, ILibAsyncSocket_MemoryOwnership_USER);
}
if(obj->dTlsSessions[existingSession]->state == 4) {ILibWebRTC_DTLS_HandshakeDetect(obj, "S ", obj->dTlsSessions[existingSession]->writeBIOBuffer->data, 0, (int)obj->dTlsSessions[existingSession]->writeBIOBuffer->length);}
BIO_reset(obj->dTlsSessions[existingSession]->writeBIO);
ignore_result(BIO_reset(obj->dTlsSessions[existingSession]->writeBIO));
}
sem_post(&(obj->dTlsSessions[existingSession]->Lock));
}