projects
/
pgpool2.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6ea1544
)
Fix for [pgpool-general: 6951] Fix-condition-tok-is-always-true
author
Muhammad Usama
<m.usama@gmail.com>
Mon, 6 Apr 2020 09:12:00 +0000
(14:12 +0500)
committer
Muhammad Usama
<m.usama@gmail.com>
Mon, 6 Apr 2020 09:12:00 +0000
(14:12 +0500)
Fix contributed by: sherlockcpp <sherlockcpp@foxmail.com>
src/auth/pool_passwd.c
patch
|
blob
|
blame
|
history
diff --git
a/src/auth/pool_passwd.c
b/src/auth/pool_passwd.c
index a24eb9b628610fd7b533e08fc8ff9cdfbf600862..acf3fa9a5b5022d82fdddac4df2cf80c81849075 100644
(file)
--- a/
src/auth/pool_passwd.c
+++ b/
src/auth/pool_passwd.c
@@
-388,7
+388,7
@@
pool_get_user_credentials(char *username)
char *pwd;
t = getNextToken(t, &pwd);
- if (
tok
)
+ if (
pwd
)
{
pwdMapping->backendUser.password = pwd;
pwdMapping->backendUser.userName = tok;