*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/backend/libpq/hba.c,v 1.169 2008/10/23 13:31:10 mha Exp $
+ * $PostgreSQL: pgsql/src/backend/libpq/hba.c,v 1.170 2008/10/24 12:48:31 mha Exp $
*
*-------------------------------------------------------------------------
*/
optname, validmethods), \
errcontext("line %d of configuration file \"%s\"", \
line_num, HbaFileName))); \
- goto hba_other_error; \
+ return false; \
} while (0);
#define REQUIRE_AUTH_OPTION(methodval, optname, validmethods) do {\
authname, argname), \
errcontext("line %d of configuration file \"%s\"", \
line_num, HbaFileName))); \
- goto hba_other_error; \
+ return false; \
} \
} while (0);
*cidr_slash = '/';
if (gai_result)
pg_freeaddrinfo_all(hints.ai_family, gai_result);
- goto hba_other_error;
+ return false;
}
if (cidr_slash)
line_num, HbaFileName)));
if (gai_result)
pg_freeaddrinfo_all(hints.ai_family, gai_result);
- goto hba_other_error;
+ return false;
}
memcpy(&parsedline->mask, gai_result->ai_addr, gai_result->ai_addrlen);
(errcode(ERRCODE_CONFIG_FILE_ERROR),
errmsg("IP address and mask do not match in file \"%s\" line %d",
HbaFileName, line_num)));
- goto hba_other_error;
+ return false;
}
}
} /* != ctLocal */
token),
errcontext("line %d of configuration file \"%s\"",
line_num, HbaFileName)));
- goto hba_other_error;
+ return false;
}
if (unsupauth)
token),
errcontext("line %d of configuration file \"%s\"",
line_num, HbaFileName)));
- goto hba_other_error;
+ return false;
}
/* Invalid authentication combinations */
errmsg("krb5 authentication is not supported on local sockets"),
errcontext("line %d of configuration file \"%s\"",
line_num, HbaFileName)));
- goto hba_other_error;
+ return false;
}
/* Parse remaining arguments */
errmsg("authentication option not in name=value format: %s", token),
errcontext("line %d of configuration file \"%s\"",
line_num, HbaFileName)));
- goto hba_other_error;
+ return false;
}
else
{
errmsg("invalid ldap port '%s'", c),
errcontext("line %d of configuration file \"%s\"",
line_num, HbaFileName)));
- goto hba_other_error;
+ return false;
}
}
else if (strcmp(token, "ldapprefix") == 0)
errmsg("unknown authentication option name '%s'", token),
errcontext("line %d of configuration file \"%s\"",
line_num, HbaFileName)));
- goto hba_other_error;
+ return false;
}
}
}
errcontext("line %d of configuration file \"%s\"",
line_num, HbaFileName)));
- /* Come here if suitable message already logged */
-hba_other_error:
return false;
}