pike.git/lib/modules/Sql.pmod/pgsql.pike:808: Inside #if defined(PG_DEBUG)
if(msglen != 1)
errtype=PROTOCOLERROR;
msglen=0;
#endif
break;
}
case 11: {
PD("AuthenticationSASLContinue\n");
string response;
if (response
- = SASLcontext.client_2(cr->read_buffer(msglen), pass))
+ = SASLcontext.client_2(cr->read(msglen), pass))
authresponse(response);
else
errtype = PROTOCOLERROR;
#ifdef PG_DEBUG
msglen = 0;
#endif
break;
}
case 12:
PD("AuthenticationSASLFinal\n");
- if (SASLcontext.client_3(cr->read_buffer(msglen)))
+ if (SASLcontext.client_3(cr->read(msglen)))
SASLcontext = 0; // Clears context and approves server
else
errtype = PROTOCOLERROR;
#ifdef PG_DEBUG
msglen=0;
#endif
break;
default:
PD("Unknown Authentication Method %c\n",authtype);
errtype=PROTOCOLUNSUPPORTED;