Fixed: RESTCONF: some client cert failure leads to restconf exit

Instead close and continue
This commit is contained in:
Olof hagsand 2023-04-18 10:09:09 +02:00
parent f8324df917
commit c56d5aa44e
2 changed files with 6 additions and 2 deletions

View file

@ -1408,11 +1408,13 @@ restconf_ssl_accept_client(clicon_handle h,
case HTTP_2:{
if (http2_session_init(rc) < 0){
restconf_close_ssl_socket(rc, __FUNCTION__, 0);
goto done;
clicon_err_reset();
goto closed;
}
if (http2_send_server_connection(rc) < 0){
restconf_close_ssl_socket(rc, __FUNCTION__, 0);
goto done;
clicon_err_reset();
goto closed;
}
break;
}