mirror of
https://github.com/moparisthebest/curl
synced 2024-11-11 12:05:06 -05:00
sasl; fix checksrc warnings
This commit is contained in:
parent
051485d9e0
commit
88f585c3a1
@ -1676,15 +1676,17 @@ CURLcode Curl_sasl_continue(struct SASL *sasl, struct connectdata *conn,
|
|||||||
|
|
||||||
case SASL_OAUTH2_RESP:
|
case SASL_OAUTH2_RESP:
|
||||||
/* The continuation is optional so check the response code */
|
/* The continuation is optional so check the response code */
|
||||||
if (code == sasl->params->finalcode) {
|
if(code == sasl->params->finalcode) {
|
||||||
/* Final response was received so we are done */
|
/* Final response was received so we are done */
|
||||||
*progress = SASL_DONE;
|
*progress = SASL_DONE;
|
||||||
state(sasl, conn, SASL_STOP);
|
state(sasl, conn, SASL_STOP);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
else if (code == sasl->params->contcode) {
|
else if(code == sasl->params->contcode) {
|
||||||
/* Acknowledge the continuation by sending a 0x01 response base64 encoded */
|
/* Acknowledge the continuation by sending a 0x01 response base64
|
||||||
if (!(resp = strdup("AQ==")))
|
encoded */
|
||||||
|
resp = strdup("AQ==");
|
||||||
|
if(!resp)
|
||||||
result = CURLE_OUT_OF_MEMORY;
|
result = CURLE_OUT_OF_MEMORY;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user