Closed dovholuknf closed 4 years ago
I had a context which did not fully initialize due to failed to login: INVALID_AUTH[-12](The authentication request failed). When that context is passed to ziti_shutdown ztx->session is NULL and free_ziti_session(ztx->session); will cause a crash
failed to login: INVALID_AUTH[-12](The authentication request failed)
ztx->session
free_ziti_session(ztx->session);
free_ziti_session calls model_free() (https://github.com/openziti/ziti-sdk-c/blob/master/library/model_support.c#L193) which guards against NULL pointer being passed
free_ziti_session
model_free()
I had a context which did not fully initialize due to
failed to login: INVALID_AUTH[-12](The authentication request failed)
. When that context is passed to ziti_shutdownztx->session
is NULL andfree_ziti_session(ztx->session);
will cause a crash