SSL_CTX_new may return NULL
authorAlan T. DeKok <aland@freeradius.org>
Tue, 22 Apr 2014 12:52:24 +0000 (08:52 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 22 Apr 2014 12:52:24 +0000 (08:52 -0400)
src/main/tls.c

index 4ec72aa..c926d8b 100644 (file)
@@ -2001,6 +2001,7 @@ static SSL_CTX *init_tls_ctx(fr_tls_server_conf_t *conf, int client)
 #endif
 
        ctx = SSL_CTX_new(TLSv1_method());
+       if (!ctx) return NULL;
 
        /*
         * Save the config on the context so that callbacks which