Branch: refs/heads/rekey
Home:
https://github.com/kronosnet/kronosnet
Commit: e4d0354b39bb1083c47b741e63c7b6ba1ec119cf
https://github.com/kronosnet/kronosnet/commit/e4d0354b39bb1083c47b741e63c7b…
Author: Fabio M. Di Nitto <fdinitto(a)redhat.com>
Date: 2019-03-24 (Sun, 24 Mar 2019)
Changed paths:
M libknet/transport_sctp.c
M libknet/transport_udp.c
Log Message:
-----------
[transports] fix usage after free of transport info memory
spotted while implementing functional testing for rekey.
when configuring multiple hosts (3+) with 1 link sharing
the same listener, but NOT enabling the link, if the user
attempts to shutdown knet_h, the first call to knet_link_clear_config
will not recognize that the listener is still in use by another
link and will release all resources.
At the time of invoking clear_config on the second link, transport_clear_config
will access already freed memory, or alternatively, a call to
link_enable would cause a crash because the listener does no
longer exist.
Signed-off-by: Fabio M. Di Nitto <fdinitto(a)redhat.com>