Index: fe-auth.c =================================================================== RCS file: /projects/cvsroot/pgsql/src/interfaces/libpq/fe-auth.c,v retrieving revision 1.136 diff -r1.136 fe-auth.c 421a422,432 > else { > crypt_pwd2 = crypt_pwd + MD5_PASSWD_LEN + 1; > if (!pg_md5_encrypt(password, conn->pguser, > strlen(conn->pguser), crypt_pwd2)) > { > free(crypt_pwd); > return STATUS_ERROR; > } > } > > /* can't ignore per-connection salt */ 788,793c799,800 < crypt_pwd2 = crypt_pwd + MD5_PASSWD_LEN + 1; < if (!pg_md5_encrypt(password, conn->pguser, < strlen(conn->pguser), crypt_pwd2)) < { < free(crypt_pwd); < return STATUS_ERROR; --- > if (isMD5(password)) { > crypt_pwd2 = (char *) password; 794a802,812 > else { > crypt_pwd2 = crypt_pwd + MD5_PASSWD_LEN + 1; > if (!pg_md5_encrypt(password, conn->pguser, > strlen(conn->pguser), crypt_pwd2)) > { > free(crypt_pwd); > return STATUS_ERROR; > } > } > > /* can't ignore per-connection salt */