Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
3ca5aa6c
G
Gpdb
项目概览
Greenplum
/
Gpdb
通知
7
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
Gpdb
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
3ca5aa6c
编写于
10月 24, 2008
作者:
M
Magnus Hagander
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Replace now unnecessary goto statements by using return directly.
上级
bb8c822d
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
12 addition
and
14 deletion
+12
-14
src/backend/libpq/hba.c
src/backend/libpq/hba.c
+12
-14
未找到文件。
src/backend/libpq/hba.c
浏览文件 @
3ca5aa6c
...
...
@@ -10,7 +10,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/libpq/hba.c,v 1.1
69 2008/10/23 13:31:10
mha Exp $
* $PostgreSQL: pgsql/src/backend/libpq/hba.c,v 1.1
70 2008/10/24 12:48:31
mha Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -581,7 +581,7 @@ check_db(const char *dbname, const char *role, char *param_str)
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 {\
...
...
@@ -597,7 +597,7 @@ check_db(const char *dbname, const char *role, char *param_str)
authname, argname), \
errcontext("line %d of configuration file \"%s\"", \
line_num, HbaFileName))); \
goto hba_other_error
; \
return false
; \
} \
} while (0);
...
...
@@ -704,7 +704,7 @@ parse_hba_line(List *line, int line_num, HbaLine *parsedline)
*
cidr_slash
=
'/'
;
if
(
gai_result
)
pg_freeaddrinfo_all
(
hints
.
ai_family
,
gai_result
);
goto
hba_other_error
;
return
false
;
}
if
(
cidr_slash
)
...
...
@@ -739,7 +739,7 @@ parse_hba_line(List *line, int line_num, HbaLine *parsedline)
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
);
...
...
@@ -751,7 +751,7 @@ parse_hba_line(List *line, int line_num, HbaLine *parsedline)
(
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 */
...
...
@@ -813,7 +813,7 @@ parse_hba_line(List *line, int line_num, HbaLine *parsedline)
token
),
errcontext
(
"line %d of configuration file
\"
%s
\"
"
,
line_num
,
HbaFileName
)));
goto
hba_other_error
;
return
false
;
}
if
(
unsupauth
)
...
...
@@ -824,7 +824,7 @@ parse_hba_line(List *line, int line_num, HbaLine *parsedline)
token
),
errcontext
(
"line %d of configuration file
\"
%s
\"
"
,
line_num
,
HbaFileName
)));
goto
hba_other_error
;
return
false
;
}
/* Invalid authentication combinations */
...
...
@@ -836,7 +836,7 @@ parse_hba_line(List *line, int line_num, HbaLine *parsedline)
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 */
...
...
@@ -859,7 +859,7 @@ parse_hba_line(List *line, int line_num, HbaLine *parsedline)
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
{
...
...
@@ -902,7 +902,7 @@ parse_hba_line(List *line, int line_num, HbaLine *parsedline)
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
)
...
...
@@ -922,7 +922,7 @@ parse_hba_line(List *line, int line_num, HbaLine *parsedline)
errmsg
(
"unknown authentication option name '%s'"
,
token
),
errcontext
(
"line %d of configuration file
\"
%s
\"
"
,
line_num
,
HbaFileName
)));
goto
hba_other_error
;
return
false
;
}
}
}
...
...
@@ -953,8 +953,6 @@ hba_syntax:
errcontext
(
"line %d of configuration file
\"
%s
\"
"
,
line_num
,
HbaFileName
)));
/* Come here if suitable message already logged */
hba_other_error:
return
false
;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录