Skip to content

Commit

Permalink
certauth: Fix error handling on a protocol violation
Browse files Browse the repository at this point in the history
If the other end sends something in a state where it's not expected, one
case would not properly terminate the connection or return a proper
value.

Signed-off-by: Corey Minyard <[email protected]>
  • Loading branch information
cminyard committed Jul 8, 2023
1 parent 5b37134 commit 2305ee7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/gensio_filter_certauth.c
Original file line number Diff line number Diff line change
Expand Up @@ -1333,9 +1333,9 @@ certauth_try_connect(struct gensio_filter *filter, gensio_time *timeout,
gca_log_err(sfilter,
"Got server data while client waiting in challenge delay");
sfilter->pending_err = GE_NOTREADY;
break;
goto finish_result;
}
goto out;
goto out_inprogress;
}

set_digest(sfilter);
Expand Down

0 comments on commit 2305ee7

Please sign in to comment.