Skip to content

Commit

Permalink
Merge pull request #208 from kronosnet/fixes
Browse files Browse the repository at this point in the history
important fixes
  • Loading branch information
fabbione committed Mar 26, 2019
2 parents 2ff304d + 07688a2 commit 4818cfa
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions kronosnet.spec.in
Expand Up @@ -544,6 +544,7 @@ Requires: libknet1-crypto-plugins-all
%package -n kronosnet-tests
Group: System Environment/Libraries
Summary: kronosnet test suite
Requires: libknet1 = %{version}-%{release}

%description -n kronosnet-tests
this package contains all the libknet and libnozzle test suite
Expand Down
3 changes: 1 addition & 2 deletions libknet/transport_sctp.c
Expand Up @@ -1069,8 +1069,7 @@ static int sctp_link_listener_stop(knet_handle_t knet_h, struct knet_link *kn_li

link_info = host->link[link_idx].transport_link;
if ((link_info) &&
(link_info->listener == info) &&
(host->link[link_idx].status.enabled == 1)) {
(link_info->listener == info)) {
found = 1;
break;
}
Expand Down
3 changes: 1 addition & 2 deletions libknet/transport_udp.c
Expand Up @@ -186,8 +186,7 @@ int udp_transport_link_clear_config(knet_handle_t knet_h, struct knet_link *kn_l
if (&host->link[link_idx] == kn_link)
continue;

if ((host->link[link_idx].transport_link == info) &&
(host->link[link_idx].status.enabled == 1)) {
if (host->link[link_idx].transport_link == info) {
found = 1;
break;
}
Expand Down

0 comments on commit 4818cfa

Please sign in to comment.