]> granicus.if.org Git - postgresql/commitdiff
Fix cut/paste error that caused all errors from REQUIRE_AUTH_OPTION to say
authorMagnus Hagander <magnus@hagander.net>
Fri, 2 Jan 2009 11:34:03 +0000 (11:34 +0000)
committerMagnus Hagander <magnus@hagander.net>
Fri, 2 Jan 2009 11:34:03 +0000 (11:34 +0000)
it was the ldaptls parameter that was wrong...

src/backend/libpq/hba.c

index 5e04f524dab796deb47c6728e1b900229f915bd0..45edaa9bb8691c1d4f9e500053bc1fc937b167c2 100644 (file)
@@ -10,7 +10,7 @@
  *
  *
  * IDENTIFICATION
- *       $PostgreSQL: pgsql/src/backend/libpq/hba.c,v 1.177 2009/01/01 17:23:42 momjian Exp $
+ *       $PostgreSQL: pgsql/src/backend/libpq/hba.c,v 1.178 2009/01/02 11:34:03 mha Exp $
  *
  *-------------------------------------------------------------------------
  */
@@ -587,7 +587,7 @@ check_db(const char *dbname, const char *role, char *param_str)
 
 #define REQUIRE_AUTH_OPTION(methodval, optname, validmethods) do {\
        if (parsedline->auth_method != methodval) \
-               INVALID_AUTH_OPTION("ldaptls", "ldap"); \
+               INVALID_AUTH_OPTION(optname, validmethods); \
 } while (0);
 
 #define MANDATORY_AUTH_ARG(argvar, argname, authname) do {\