gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnurl] 21/151: openssl: prevent recursive function calls from ctx callb


From: gnunet
Subject: [gnurl] 21/151: openssl: prevent recursive function calls from ctx callbacks
Date: Fri, 20 Dec 2019 14:25:30 +0100

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to branch master
in repository gnurl.

commit 8686aab69402ccad4bde0c2d73ec18e503ca11fd
Author: Daniel Stenberg <address@hidden>
AuthorDate: Mon Nov 11 11:45:12 2019 +0100

    openssl: prevent recursive function calls from ctx callbacks
    
    Follow the pattern of many other callbacks.
    
    Ref: #4546
    Closes #4585
---
 lib/vtls/openssl.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/vtls/openssl.c b/lib/vtls/openssl.c
index 760758d23..26c8aa479 100644
--- a/lib/vtls/openssl.c
+++ b/lib/vtls/openssl.c
@@ -2806,8 +2806,10 @@ static CURLcode ossl_connect_step1(struct connectdata 
*conn, int sockindex)
 
   /* give application a chance to interfere with SSL set up. */
   if(data->set.ssl.fsslctx) {
+    Curl_set_in_callback(data, true);
     result = (*data->set.ssl.fsslctx)(data, BACKEND->ctx,
                                       data->set.ssl.fsslctxp);
+    Curl_set_in_callback(data, false);
     if(result) {
       failf(data, "error signaled by ssl ctx callback");
       return result;

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]