(sql_expand_query): Bugfix

git-svn-id: file:///svnroot/pam-modules/trunk@36 56984be4-0537-0410-a56c-fcb268c96130
This commit is contained in:
Sergey Poznyakoff 2006-09-06 13:06:29 +00:00
parent 331da3dd57
commit c2e4becb13
2 changed files with 2 additions and 2 deletions

View file

@ -60,7 +60,7 @@ sql_expand_query (MYSQL *mysql,
len += strlen (esc_user);
p += 2;
} if (p[1] == 'u') {
} if (p[1] == 'p') {
int size = 2*strlen(pass)+1;
esc_pass = malloc(len);
if (!esc_pass)