]> ruderich.org/simon Gitweb - tlsproxy/tlsproxy.git/commitdiff
src/connection.c: Fix error check for gnutls_priority_set().
authorSimon Ruderich <simon@ruderich.org>
Sun, 22 Jul 2012 01:26:45 +0000 (03:26 +0200)
committerSimon Ruderich <simon@ruderich.org>
Sun, 22 Jul 2012 01:26:45 +0000 (03:26 +0200)
src/connection.c

index 4e98f309dd063bfa5ba4eec470396cfe1c789468..5c7f7ae600f7813f2691996811ee9d4231112fd8 100644 (file)
@@ -470,7 +470,7 @@ gnutls_certificate_allocate_credentials(): %s",
         gnutls_certificate_free_credentials(*x509_cred);
         return -1;
     }
-    gnutls_priority_set(*session, global_tls_priority_cache);
+    result = gnutls_priority_set(*session, global_tls_priority_cache);
     if (GNUTLS_E_SUCCESS != result) {
         LOG(LOG_ERROR,
             "initialize_tls_session_server(): gnutls_priority_set(): %s",