From 9e1c5fba039312d9e0c1741acdbdd3dc4d680ce2 Mon Sep 17 00:00:00 2001
From: Bruce Momjian <bruce@momjian.us>
Date: Mon, 17 Jun 2002 15:23:36 +0000
Subject: [PATCH] Fix missing 'buf' variable in SSL sources and add missing
 includes.

---
 src/backend/libpq/be-secure.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/backend/libpq/be-secure.c b/src/backend/libpq/be-secure.c
index 24af7d4ebe3..f923b296e5a 100644
--- a/src/backend/libpq/be-secure.c
+++ b/src/backend/libpq/be-secure.c
@@ -11,7 +11,7 @@
  *
  *
  * IDENTIFICATION
- *	  $Header: /cvsroot/pgsql/src/backend/libpq/be-secure.c,v 1.8 2002/06/17 15:19:28 momjian Exp $
+ *	  $Header: /cvsroot/pgsql/src/backend/libpq/be-secure.c,v 1.9 2002/06/17 15:23:36 momjian Exp $
  *
  *	  Since the server static private key ($DataDir/server.key)
  *	  will normally be stored unencrypted so that the database
@@ -77,6 +77,7 @@
 #include "postgres.h"
 
 #include <sys/types.h>
+#include <sys/stat.h>
 #include <signal.h>
 #include <fcntl.h>
 #include <errno.h>
@@ -583,7 +584,8 @@ static int
 initialize_SSL (void)
 {
 	char fnbuf[2048];
-
+	struct stat buf;
+	
 	if (!SSL_context)
 	{
 		SSL_library_init();
-- 
GitLab