diff options
| author | Neil Conway | 2004-02-02 16:58:30 +0000 |
|---|---|---|
| committer | Neil Conway | 2004-02-02 16:58:30 +0000 |
| commit | 9e218af7edc63125436c895891119d15873f5a24 (patch) | |
| tree | c3e20c5af396bbf57f9981e4a8141a96bab56c02 /src/include/libpq | |
| parent | 4c29e215782e357a81d6fbb794b47b5c3210caf5 (diff) | |
Fix a read of uninitialized memory in next_token() of hba.c, spotted via
valgrind: a buffer passed to strncmp() had to be NUL-terminated. Original
report and patch from Dennis Bjorkland, some cleanup by Andrew Dunstan,
and finally some editorializing from Neil Conway.
Diffstat (limited to 'src/include/libpq')
| -rw-r--r-- | src/include/libpq/hba.h | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/src/include/libpq/hba.h b/src/include/libpq/hba.h index 06b0b5cdc0a..a284edf3967 100644 --- a/src/include/libpq/hba.h +++ b/src/include/libpq/hba.h @@ -4,7 +4,7 @@ * Interface to hba.c * * - * $PostgreSQL: pgsql/src/include/libpq/hba.h,v 1.34 2003/11/29 22:41:03 pgsql Exp $ + * $PostgreSQL: pgsql/src/include/libpq/hba.h,v 1.35 2004/02/02 16:58:30 neilc Exp $ * *------------------------------------------------------------------------- */ @@ -17,15 +17,6 @@ #include "nodes/pg_list.h" -#define CONF_FILE "pg_hba.conf" - /* Name of the config file */ - -#define USERMAP_FILE "pg_ident.conf" - /* Name of the usermap file */ - -#define IDENT_PORT 113 - /* Standard TCP port number for Ident service. Assigned by IANA */ - typedef enum UserAuth { uaReject, @@ -43,9 +34,6 @@ typedef enum UserAuth typedef struct Port hbaPort; -#define MAX_TOKEN 256 - -extern void next_token(FILE *fp, char *buf, const int bufsz); extern List **get_user_line(const char *user); extern void load_hba(void); extern void load_ident(void); |
