From 6a64cf5ff1bd4cf5c7c128c1e05b8b1accc9b665 Mon Sep 17 00:00:00 2001 From: Olof hagsand Date: Sat, 3 Apr 2021 10:37:29 +0200 Subject: [PATCH] Restconf: nonblocking constant and fixed an accept again loop error --- apps/restconf/restconf_main_evhtp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/restconf/restconf_main_evhtp.c b/apps/restconf/restconf_main_evhtp.c index 3b4148c2..235c4cc0 100644 --- a/apps/restconf/restconf_main_evhtp.c +++ b/apps/restconf/restconf_main_evhtp.c @@ -1345,8 +1345,9 @@ openssl_init_socket(clicon_handle h, #ifdef RESTCONF_OPENSSL_NONBLOCKING SOCK_NONBLOCK, /* Also 0 is possible */ #else /* blocking */ - &ss + 0, #endif + &ss ) < 0) goto done; if ((rh = restconf_handle_get(h)) == NULL){