Skip to content

Commit

Permalink
fixup: check return code of he_internal_pmtud_start_base_probing
Browse files Browse the repository at this point in the history
  • Loading branch information
expressvpn-tom-l committed Oct 18, 2023
1 parent f6a1266 commit 68e2738
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 1 addition & 3 deletions src/he/conn.c
Original file line number Diff line number Diff line change
Expand Up @@ -1196,9 +1196,7 @@ he_return_code_t he_conn_start_pmtu_discovery(he_conn_t *conn) {
}

// Enter Base state
he_internal_pmtud_start_base_probing(conn);

return HE_SUCCESS;
return he_internal_pmtud_start_base_probing(conn);
}

uint16_t he_conn_get_effective_pmtu(he_conn_t *conn) {
Expand Down
3 changes: 3 additions & 0 deletions src/he/pmtud.c
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,9 @@ he_return_code_t he_internal_pmtud_start_base_probing(he_conn_t *conn) {
case HE_PMTUD_STATE_SEARCH_COMPLETE:
// Valid states
break;
case HE_PMTUD_STATE_BASE:
// Already in base state, do nothing
return HE_SUCCESS;
default:
// Invalid states
return HE_ERR_INVALID_CONN_STATE;
Expand Down

0 comments on commit 68e2738

Please sign in to comment.