ossl_ackm_on_pkt_space_discarded(ch->ackm, pn_space);
/* We should still have crypto streams at this point. */
- assert(ch->crypto_send[pn_space] != NULL);
- assert(ch->crypto_recv[pn_space] != NULL);
+ if (!ossl_assert(ch->crypto_send[pn_space] != NULL)
+ || !ossl_assert(ch->crypto_recv[pn_space] != NULL))
+ return 0;
/* Get rid of the crypto stream state for the EL. */
ossl_quic_sstream_free(ch->crypto_send[pn_space]);
* https://www.openssl.org/source/license.html
*/
#include "internal/quic_reactor.h"
+#include "internal/common.h"
/*
* Core I/O Reactor Framework
if (wfd > maxfd)
maxfd = wfd;
- if (rfd == -1 && wfd == -1 && ossl_time_is_infinite(deadline))
+ if (!ossl_assert(rfd != -1 || wfd != -1
+ || !ossl_time_is_infinite(deadline)))
/* Do not block forever; should not happen. */
return 0;
++npfd;
}
- if (npfd == 0 && ossl_time_is_infinite(deadline))
+ if (!ossl_assert(npfd != 0 || !ossl_time_is_infinite(deadline)))
/* Do not block forever; should not happen. */
return 0;