1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-28 23:42:10 +03:00

Fix missing 'buf' variable in SSL sources and add missing includes.

This commit is contained in:
Bruce Momjian
2002-06-17 15:23:36 +00:00
parent 7005e4c076
commit 9e1c5fba03

View File

@ -11,7 +11,7 @@
* *
* *
* IDENTIFICATION * 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) * Since the server static private key ($DataDir/server.key)
* will normally be stored unencrypted so that the database * will normally be stored unencrypted so that the database
@ -77,6 +77,7 @@
#include "postgres.h" #include "postgres.h"
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h>
#include <signal.h> #include <signal.h>
#include <fcntl.h> #include <fcntl.h>
#include <errno.h> #include <errno.h>
@ -583,7 +584,8 @@ static int
initialize_SSL (void) initialize_SSL (void)
{ {
char fnbuf[2048]; char fnbuf[2048];
struct stat buf;
if (!SSL_context) if (!SSL_context)
{ {
SSL_library_init(); SSL_library_init();