summaryrefslogtreecommitdiff
path: root/src/interfaces/libpq/fe-secure.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2004-09-28 00:07:01 +0000
committerBruce Momjian <bruce@momjian.us>2004-09-28 00:07:01 +0000
commit1ad687827607ee02a51182ea8a255c230e61c740 (patch)
tree82649551804981aafab6bbfb823803ccfb6d86b6 /src/interfaces/libpq/fe-secure.c
parentdd67707a64070532c12a7a2b51f629c64fe7ae99 (diff)
Revert patch that removed BUFSIZ usage. The memory has to hold the
structures plus pointers used by the structure.
Diffstat (limited to 'src/interfaces/libpq/fe-secure.c')
-rw-r--r--src/interfaces/libpq/fe-secure.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/interfaces/libpq/fe-secure.c b/src/interfaces/libpq/fe-secure.c
index d4f93733da4..199ae9c2fd8 100644
--- a/src/interfaces/libpq/fe-secure.c
+++ b/src/interfaces/libpq/fe-secure.c
@@ -11,7 +11,7 @@
*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/interfaces/libpq/fe-secure.c,v 1.53 2004/09/27 23:38:45 momjian Exp $
+ * $PostgreSQL: pgsql/src/interfaces/libpq/fe-secure.c,v 1.54 2004/09/28 00:06:02 momjian Exp $
*
* NOTES
* [ Most of these notes are wrong/obsolete, but perhaps not all ]
@@ -512,7 +512,7 @@ verify_peer(PGconn *conn)
{
struct hostent hpstr;
- char buf[sizeof(struct hostent)];
+ char buf[BUFSIZ];
int herrno = 0;
/*
@@ -598,7 +598,7 @@ load_dh_file(int keylength)
#ifdef WIN32
return NULL;
#else
- char pwdbuf[sizeof(struct passwd)];
+ char pwdbuf[BUFSIZ];
struct passwd pwdstr;
struct passwd *pwd = NULL;
FILE *fp;
@@ -745,7 +745,7 @@ client_cert_cb(SSL *ssl, X509 **x509, EVP_PKEY **pkey)
#ifdef WIN32
return 0;
#else
- char pwdbuf[sizeof(struct passwd)];
+ char pwdbuf[BUFSIZ];
struct passwd pwdstr;
struct passwd *pwd = NULL;
struct stat buf,
@@ -952,7 +952,7 @@ initialize_SSL(PGconn *conn)
{
#ifndef WIN32
struct stat buf;
- char pwdbuf[sizeof(struct passwd)];
+ char pwdbuf[BUFSIZ];
struct passwd pwdstr;
struct passwd *pwd = NULL;
char fnbuf[MAXPGPATH];