diff options
Diffstat (limited to 'src/common/saslprep.c')
-rw-r--r-- | src/common/saslprep.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/common/saslprep.c b/src/common/saslprep.c index 2dedf6b0fb6..d60452f75f2 100644 --- a/src/common/saslprep.c +++ b/src/common/saslprep.c @@ -30,12 +30,6 @@ #include "mb/pg_wchar.h" /* - * Limit on how large password's we will try to process. A password - * larger than this will be treated the same as out-of-memory. - */ -#define MAX_PASSWORD_LENGTH 1024 - -/* * In backend, we will use palloc/pfree. In frontend, use malloc, and * return SASLPREP_OOM on out-of-memory. */ @@ -1078,18 +1072,6 @@ pg_saslprep(const char *input, char **output) /* Ensure we return *output as NULL on failure */ *output = NULL; - /* Check that the password isn't stupendously long */ - if (strlen(input) > MAX_PASSWORD_LENGTH) - { -#ifndef FRONTEND - ereport(ERROR, - (errcode(ERRCODE_PROGRAM_LIMIT_EXCEEDED), - errmsg("password too long"))); -#else - return SASLPREP_OOM; -#endif - } - /* * Quick check if the input is pure ASCII. An ASCII string requires no * further processing. |