From 18f9f4514e667776e610dbacdcb0490275c54c4a Mon Sep 17 00:00:00 2001 From: Rahim Kanji Date: Tue, 26 Nov 2024 13:14:23 +0500 Subject: [PATCH] Few fixes --- include/PgSQL_Data_Stream.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/PgSQL_Data_Stream.h b/include/PgSQL_Data_Stream.h index 9193be3cf..1e7ee765a 100644 --- a/include/PgSQL_Data_Stream.h +++ b/include/PgSQL_Data_Stream.h @@ -225,8 +225,8 @@ public: // - without ssl: we use the file descriptor from pgsql connection // - with ssl: we use the SSL structure from pgsql connection if (myconn->is_connected() && myconn->get_pg_ssl_in_use()) { - encrypted = true; if (ssl == NULL) { + encrypted = true; SSL* ssl_obj = myconn->get_pg_ssl_object(); if (ssl_obj == NULL) assert(0); // Should not be null ssl = ssl_obj;